Failed scenarios marked as passed #571
-
I recently migrated a large project from SpecFlow, NUnit, .NET 6.0, and Allure 1 (the old SpecFlow.Allure package) to Reqnroll, .NET 8.0, and Allure 2 (the Allure.Reqnroll package, still using NUnit). However, since the migration, I noticed that some scenarios that throw exceptions now are marked as test passes when they should instead be failures. The stdout output shows that the step failed (the step in question shows an error and all following steps show "skipped due to previous errors", but the test exits as if no exception was thrown, no exception or error trace is printed, and the test is marked as passed, both in the Visual Studio test explorer and in the I suspect it may have something to do with NUnit, as failed assertions properly fail the test, and I know NUnit sometimes treats assertions differently from other exceptions, but this could be a red herring. This was not happening before the migration, and I'm having trouble writing an MRE because the project is fairly complex. What might be causing this behavior and how can I fix it? If I can reproduce it in a simpler project I will post it here. Thanks! Other installed reqnroll plugins: reqnroll.json: {
"$schema": "https://schemas.reqnroll.net/reqnroll-config-latest.json",
"pluginparameters": {
"variantkey": "Browser"
}
} allureConfig.json:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Well, I found the problem, it's the |
Beta Was this translation helpful? Give feedback.
Well, I found the problem, it's the
ViaData.Reqnroll.Variants
package. I don't know how or why, but adding it to my minimum example causes it to show this behavior. Removing it makes the test fail as expected.