You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think we could start with something that runs before all tests (which we almost have with helper-, barring load_all() behavior), and something that runs after all tests.
I.e. sg. like creating a test db, and then cleaning it up.
Per-file setup can be useful as well, I can see that. Maybe you can already do this, actually, by simply putting the code at the beginning of the file, and using on.exit(). AFAIR this works when the tests are running via test_file(). But it would be nice to formalize / document this.
I am not sure if per-block setup would be useful, I think you can just manually include that, and I don't see a situation where setup/teardown is needed for every block.
Would be run before/after each test.
Do we also need per-file setup and teardown?
The text was updated successfully, but these errors were encountered: