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

Setupfixture fixes #917

Merged
merged 7 commits into from
Mar 1, 2024
Merged

Setupfixture fixes #917

merged 7 commits into from
Mar 1, 2024

Conversation

OsirisTerje
Copy link
Member

@OsirisTerje OsirisTerje commented Mar 1, 2024

Clarifying setupfixture documentation based on questions in issue nunit/nunit#4268

Also fixes Issue #819

Copy link

github-actions bot commented Mar 1, 2024

OsirisTerje and others added 4 commits March 1, 2024 21:36
Co-authored-by: Sean Killeen <SeanKilleen@gmail.com>
Co-authored-by: Sean Killeen <SeanKilleen@gmail.com>
Co-authored-by: Sean Killeen <SeanKilleen@gmail.com>
@OsirisTerje
Copy link
Member Author

Thanks @SeanKilleen for the commit suggestions! Always appreciated!

@SeanKilleen
Copy link
Member

@OsirisTerje thanks for doing the hard part!

@OsirisTerje OsirisTerje merged commit e1be1c7 into master Mar 1, 2024
7 checks passed
@OsirisTerje OsirisTerje deleted the setupfixture branch March 1, 2024 20:43
github-actions bot pushed a commit that referenced this pull request Mar 1, 2024
* setupfixture fixes

* setupfixture fixes

* Update docs/articles/nunit/writing-tests/attributes/setupfixture.md

Co-authored-by: Sean Killeen <SeanKilleen@gmail.com>

* Update docs/articles/nunit/writing-tests/attributes/setupfixture.md

Co-authored-by: Sean Killeen <SeanKilleen@gmail.com>

* Update docs/articles/nunit/writing-tests/attributes/setupfixture.md

Co-authored-by: Sean Killeen <SeanKilleen@gmail.com>

* setupfixture fixes

---------

Co-authored-by: Sean Killeen <SeanKilleen@gmail.com> e1be1c7
Comment on lines +80 to +86
> [!NOTE]
> Filtering on `SetUpFixture`s

A `SetUpFixture` is normally not used for filtering tests. However, if that is done, one should be aware that a
`SetUpFixture` encapsulates all tests to which it belongs.
If placed in a namespace it will encapsulate all tests in that namespace and contained namespaces.
If placed on the assembly level, it will encapsulate all tests in the assembly.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was this your intention to place those explanations about filtering outside the note block?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, want to fix it ?

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

Successfully merging this pull request may close these issues.

3 participants