Goals:
- Not specify tests through checked in code
- Use VSTest.Console
- Execute all tests in a single result file
- Have Bamboo read results
I have 1-3 working using a powershell script I wrote. I search for dll's named with a specific pattern, such as *Tests.dll. I pass this array into the execution of VSTest.Console, and I get a single trx file in folder named TestResults which VSTest.Console creates.
Problem 1, I can't specify the name of the trx file. I believe this can be done with a settings file, but I'm trying to have all the configuration in Bamboo so that changes don't require me branching and doing pull requests, etc.
So I'm attempting to fix this by renaming the file to result.trx and setting up a MSTest Parser. Problem is, it never finds the file.
In the MSTest Parser task, I've specified the "MSTest Test Results File/Directory" value as result.trx and TestResult\result.trx and ${bamboo.build.working.directory}\TestResults\result.trx. Unfortunately, none of it works.