Skip to content

Make function run before all fixtures #10395

Answered by andyhasit
andyhasit asked this question in General
Discussion options

You must be logged in to vote

Sorry, I just realised what I'm asking for is not possible, as a test could require a fixture of higher scope than function.

I'll just need to create a function-scoped fixture which sends the statements and require that in other fixtures I use on those tests, which would force them to be function-scoped too.

I think it's either that or separating it into two runs with mutually exclusive ignore and exclude patterns which isn't terrible but is really not great either.

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by andyhasit
Comment options

You must be logged in to vote
1 reply
@andyhasit
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants