Skip to content

[Bug]: Documented workflow does not work in GitHub Actions #4083

@vbreuss

Description

@vbreuss

Description

According to the documentation, the following code should execute the tests in the build pipeline:

dotnet test --configuration Release --no-build --coverage --report-trx --results-directory ./TestResults

However the pipeline fails with MSB1001.

I also tried to run the command locally on the template project and get the same error:
Image

Expected Behavior

A clear command to run TUnit with coverage information in a GitHub action build pipeline

Actual Behavior

The documented command fails

Steps to Reproduce

  • Create a TUnit template project (dotnet new TUnit -n "MyTest")
  • Run dotnet build --configuration Release --no-restore
  • Run dotnet test --configuration Release --no-build --coverage --report-trx --results-directory ./TestResults

TUnit Version

1.5.53

.NET Version

.NET 8.0

Operating System

Windows

IDE / Test Runner

dotnet CLI (dotnet test / dotnet run)

Error Output / Stack Trace

Additional Context

No response

IDE-Specific Issue?

  • I've confirmed this issue occurs when running via dotnet test or dotnet run, not just in my IDE

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions