Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add assembly-level support for BeforeAfterTestAttribute #2334

Closed
bradwilson opened this issue Jun 30, 2021 · 3 comments
Closed

Add assembly-level support for BeforeAfterTestAttribute #2334

bradwilson opened this issue Jun 30, 2021 · 3 comments

Comments

@bradwilson
Copy link
Member

bradwilson commented Jun 30, 2021

BeforeAfterTestAttribute-derived attribute classes all the developer to run code before and after every test. In v2, this could be applied at a method (i.e., run before and after this one test) or class (i.e., run before and after every test in this class) level. In v3, we would like to allow developers to apply these attributes at the assembly level (i.e., run before and after every test in the assembly).

@bradwilson bradwilson changed the title Add assembly-level support for BeforeAfterAttribute Add assembly-level support for BeforeAfterTestAttribute Jun 30, 2021
@goldsam
Copy link

goldsam commented Jan 8, 2024

Do you think you could backpatch this into v2? You have a great project here, but v3 seems like its been a very long time coming. This seems like something that could be added to v2 with a minor release since it doesn't seem like a backwards-breaking change.

@bradwilson
Copy link
Member Author

Available in 2.6.6-pre.4 https://xunit.net/docs/using-ci-builds

@goldsam
Copy link

goldsam commented Jan 13, 2024

Utmost gratitude and respect. Thank you very much👍😀

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

No branches or pull requests

2 participants