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
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.
-
Hi,
Found out this question was few time asked, but maybe there is another approach now.
I have a resource which have to be reused as much as possible on the tests, but my tests needs 2 different setup of it.
It sounds like the easiest way to modelize that is to have 2 different fixtures which are mutually exclusive.
I have struggled a lot with package scope, session scope, constraints in different ways, without finding something really nice.
For now i use the following solution, which enforce a sequence for each setup of the resource.
Half of the tests are still marked as skipped, but this ensure to me that the sequence SETUP/TEARDOWN is properly executed to the resource.
Any idea if there is a better approach?
Beta Was this translation helpful? Give feedback.
All reactions