Warning without any reason
Reqnroll Version
3.0.0
Which test runner are you using?
NUnit
Test Runner Version Number
NUnit3TestAdapter 4.5.0
.NET Implementation
.NET 9.0
Test Execution Method
Command line – PLEASE SPECIFY THE FULL COMMAND LINE
Content of reqnroll.json configuration file
No idea what this is, there isn't one anywhere in my project.
Issue Description
My tests are generating warnings even when passing.
The content of the warning is just a description of the tests and the outputs:
/home/hughesd/.dotnet/sdk/9.0.102/Microsoft.TestPlatform.targets(48,5): warning :
Given a wearable "device1"
-> done: StepDefinitions.GivenWearble("device1") (0.0s)
When I navigate to the "Settings,Display" menu on "device1"
-> done: StepDefinitions.WhenINavigateToTheMenuOn("Settings,Display", "device1") (2.7s)
Then the menu with title "DISPLAY" is shown on "device1"
-> done: StepDefinitions.ThenTheMenuIsShown("DISPLAY", "device1") (0.0s)
I don't know what I'm being warned about, if it's just a summary of the successful test then it shouldn't be a warning.
Steps to Reproduce
- Create an nunit based reqnroll using the template
dotnet new install Reqnroll.Templates.DotNet - Run tests using
dotnet test
Link to Repro Project
No response
This appears to be an artifact of the use of NUnit3TestAdapter v4.5.0. When I upgrade my sample test project to v5.1.0 (latest) of the NUnit test adapter, that warning line is no longer present.
Yes that fixes it. Can you update the template?
@trampster could you please send a PR for the updated template?