Skip to content

NUnit.TestLogger does not output test case properties with .NET 10 SDK #212

@JoergHoffmannMeVis

Description

@JoergHoffmannMeVis

Describe the bug
For the test executed using .NET SDK 10.0.100, the generated logger output does not contain any test case properties.

dotnet test --logger \"nunit;LogFilePath=\"{assembly}\"-\"{framework}\"-test-output.xml\"

produce an error MSB4177: Invalid property. The name "{assembly}-{framework}-test-output.xml" contains an invalid character "{".

dotnet test --logger "nunit;LogFilePath=test-output.xml"

The same command for the same codebase executed using .NET 8.0.x SDK generates a proper report (in both cases, the target framework is net8.0).

  • Test Framework (choose one): Nunit
  • .NET project version, sdk version (choose applicable): net8.0
  • Command line used (please share the test run command): dotnet test --logger \"nunit;LogFilePath=\"{assembly}\"-\"{framework}\"-test-output.xml\"
  • OS: Windows

Expected behavior
The test case properties are present in the generated logger output.

Other details

Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions