I am running my automation Test in Azure pipeline and using NUnit VS Test adapter and Visual studio Test task. the .trx
file is getting attached in the
Test Run Summary. But in Publish test result task I could see the warning No test result files matching **/*.trx were found
.
Build was successful but .trx
file is not displayed in Publish test result task
Can you some help me what I am missing?
Because the .trx
file is not where you specified in the Publish task, the file generated in D:\a\_temp\....
while you specified to search in $(System.DefaultWorkingDirectory)
that is D:\a\work\1\s
.
So you can remove this task and you still will show the test results in Azure DevOps. See the docs here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With