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
Test resources (@QuarkusTestResource) are global by default, i.e. all test resources are started only once before all the tests run and stopped after all tests finished. This is great if you run all your tests because it saves a lot of time.
But if I only want to run a single test or only the tests of a single test class with only one or two test resources, then still all test resources from the entire test suite are started.
Is it possible to start only the test resources of a single test class and ignore the (global) test resources from other test classes? Preferably without changing the source code, e.g. by setting a cli option or environment variable.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Test resources (@QuarkusTestResource) are global by default, i.e. all test resources are started only once before all the tests run and stopped after all tests finished. This is great if you run all your tests because it saves a lot of time.
But if I only want to run a single test or only the tests of a single test class with only one or two test resources, then still all test resources from the entire test suite are started.
Is it possible to start only the test resources of a single test class and ignore the (global) test resources from other test classes? Preferably without changing the source code, e.g. by setting a cli option or environment variable.
Beta Was this translation helpful? Give feedback.
All reactions