Details
Description
Bamboo currently allows you to configure a MSTest Runner task as documented here
Trying to implement from Bamboo Cloud generates the following error:
java.lang.IllegalArgumentException : mstest.exe cannot be found
However, applying the following workaround allows users to utilise the MSTest Runner in the Bamboo Cloud environment:
So I found a work around solution where you manually call MSTest.exe and then parse the results.
1) Define custom server capability:
Capability Type: Executable Type: Command Label: MSTest Path: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\MSTest.exe2) Configure plan test job
3) Add Task > Script
Inline Script Body: IF EXIST %1 DEL %1 Argument: ${bamboo.buildResultKey}-${bamboo.buildNumber}.trx4) Add Task > Command
Executable: MSTest Argument: /testcontainer:[INSERT_YOUR_TEST.DLL] /resultsfile:${bamboo.buildResultKey}-${bamboo.buildNumber}.trx5) Add Task > MSTest Parser
MSTest Test Results File/Directory: ${bamboo.buildResultKey}-${bamboo.buildNumber}.trx
Attachments
Issue Links
- is related to
-
BAM-13067 Allow the addition of MSTest Runner as a capability
- Closed
- is cloned from
-
JST-101802 Loading...
- mentioned in
-
Page Loading...