Reqnroll icon indicating copy to clipboard operation
Reqnroll copied to clipboard

Warning without any reason

Open trampster opened this issue 3 months ago • 3 comments

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

  1. Create an nunit based reqnroll using the template dotnet new install Reqnroll.Templates.DotNet
  2. Run tests using dotnet test

Link to Repro Project

No response

trampster avatar Sep 18 '25 05:09 trampster

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.

clrudolphi avatar Sep 18 '25 17:09 clrudolphi

Yes that fixes it. Can you update the template?

trampster avatar Sep 18 '25 21:09 trampster

@trampster could you please send a PR for the updated template?

gasparnagy avatar Sep 21 '25 13:09 gasparnagy