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
It would be nice to have setup and teardown hooks that executes before ALL fixtures ONCE and teradown after ALL fixtures ONCE in addition to fixture hooks.
For example, it is convenient for setup test environment globally only once before all tests via hooks instead of creating custom singleton
The text was updated successfully, but these errors were encountered:
I would say in general this is a bad idea of you can avoid it as there's a risk of making tests flaky or having setup that's unclear in the scope of the test.
I would say in general this is a bad idea of you can avoid it as there's a risk of making tests flaky or having setup that's unclear in the scope of the test.
Have you got an example use case?
A good example is when we need to create and initialize test database, especially if it takes long time for unit tests to run before each suite.
It would be nice to have setup and teardown hooks that executes before ALL fixtures ONCE and teradown after ALL fixtures ONCE in addition to fixture hooks.
For example, it is convenient for setup test environment globally only once before all tests via hooks instead of creating custom singleton
The text was updated successfully, but these errors were encountered: