-
-
Notifications
You must be signed in to change notification settings - Fork 108
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description
The junit-output-path command line argument is not working.
It looks like _outputPath is not checked to see if it has already been assigned.
Using env JUNIT_XML_OUTPUT_PATH is the workaround for now,
Expected Behavior
The junit-output-path argument sets the expected JUnit output path properly.
Actual Behavior
The JUnit report is generated in the default path.
Steps to Reproduce
- Explicitly enable JUnit reporter with env
TUNIT_ENABLE_JUNIT_REPORTER(pwsh$env:TUNIT_ENABLE_JUNIT_REPORTER=1) - Run
dotnet test --junit-output-path ".\results\junit.xml" - The xml file is in
MyApp.UnitTests/bin/Debug/net10.0/TestResults/MyApp.UnitTests-junit.xml
TUnit Version
1.5.60
.NET Version
.NET 10
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 testordotnet run, not just in my IDE
Copilot
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working