We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A preview version of allure-nunit adds a OneTimeSetUp fixture for a test that doesn't have one.
Given the following test (note, it doesn't have a one-time setup method or a setup fixture that affects it):
using NUnit.Allure.Core; using NUnit.Framework; namespace MyNamespace; [AllureNUnit] class MyTestFixture { [Test] public void MyTest() { } }
When we run the test, allure-nunit produces a *-container.json file with the following content:
*-container.json
{ "uuid": "tc-0-1000", "name": "MyNamespace.MyTestFixture", "children": [ "dcb2b701-ad1b-4071-ab73-d9253f85967d-tr-0-1001" ], "befores": [ { "name": "OneTimeSetUp", "status": "passed", "statusDetails": { "known": false, "muted": false, "flaky": false }, "stage": "finished", "steps": [], "attachments": [], "parameters": [], "start": 1691559272130, "stop": 1691559272132 } ], "afters": [], "links": [], "start": 1691559272124, "stop": 1691559272167 }
It renders the OneTimeSetUp fixture in the Set up section of the report:
OneTimeSetUp
Set up
Only fixtures defined in the code are included in the report.
The fixture is started here regardless of whether a test contains a one-time setup or not.
The text was updated successfully, but these errors were encountered:
Fix inconsistent one-time fixtures behavior (fixes #374)
2e45fed
ba8bf8a
NUnit: Fix inconsistent one-time fixtures behavior (fixes #286, #374 …
8884955
…and #375) (#380) * Fix inconsistent one-time fixtures behavior (fixes #374) * Fix crash when running test from empty namespace (fixes #375) * Fix indentation for AllureAsyncOneTimeSetUoTests.cs
a87db00
neparij
delatrie
Successfully merging a pull request may close this issue.
I'm submitting a ...
What is the current behavior?
A preview version of allure-nunit adds a OneTimeSetUp fixture for a test that doesn't have one.
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
Given the following test (note, it doesn't have a one-time setup method or a setup fixture that affects it):
When we run the test, allure-nunit produces a
*-container.json
file with the following content:It renders the
OneTimeSetUp
fixture in theSet up
section of the report:What is the expected behavior?
Only fixtures defined in the code are included in the report.
Please tell us about your environment:
Other information
The fixture is started here regardless of whether a test contains a one-time setup or not.
The text was updated successfully, but these errors were encountered: