Document test data management
Closed this issue · 1 comments
searls commented
What I've done for test data management (with surprising success so far) is:
config/routes.rb
that are only drawn ifRAILS_ENV
is"test"
- A specific
app/controllers/test_states_controller.rb
that becomes a dumping ground for any test state management I need from cypress - Cypress
before
andbeforeEach
hooks that callcy.request('POST', 'test_states/database/clean_slate')
or similar to interactively wipe the database between runs
We ought to document this since 90% of users will run into the same issue
searls commented
Fixed by 0.1.0