Skip to content

dotnet test reports error even when exit code 8 is ignored #7557

@Lexy2

Description

@Lexy2

Describe the bug

Version used

Microsoft.Testing.Platform 2.1.0
net10.0
NUnit 4
NUnit3TestAdapter 6.1.0

Steps To Reproduce

Add test packages to a project but don't add any tests to it.
Run dotnet test --ignore-exit-code 8

Repro attached.

mtp-bug.zip

-->

Expected behavior

Command succeeds, exit code is 0.
Exit code 8 is respected at the dotnet test level.

Actual behavior

Command fails, exit code is 1.
Exit code 8 is respected only if you run the MTP executable itself.

Additional context

Workaround - dotnet test --ignore-exit-code 1;8

Metadata

Metadata

Assignees

Labels

Area: MTPBelongs to the Microsoft.Testing.Platform core libraryExternal: dotnet test`dotnet test` integration

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions