Skip to content

Please consider adding modular fixtures in v3 roadmap #2181

Discussion options

You must be logged in to vote
* It's very verbose. To be able to write a fixture that runs only once for test session I need to write separate CollectionDefinition. Can we just create a class, throw some `Fixture(Scope="session")` attribute on it and have xunit testing framework to find, register it and manage it's instance lifecycle? That would be so much easier.

I don't understand this scope concept you've introduced here. What's a "session"?

* It's cumbersome to use. I need mark tests with collection attribute and add fixture to constructor. Again - can we just add new test method parameter of needed fixture class type and having xunit to inject fixture instance automatically?

Is your suggestion that you woul…

Replies: 3 comments 2 replies

Comment options

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

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

Comment options

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

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