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
- is related to
-
BAM-13067 Allow the addition of MSTest Runner as a capability
- Closed
- is cloned from
-
JST-101802 You do not have permission to view this issue
- mentioned in
-
Page Failed to load
[BAM-14823] Usage of MSTest Runner is not accessible unless implementing a workaround
Workflow | Original: Bamboo Workflow 2016 v1 - Restricted [ 1442925 ] | New: JAC Bug Workflow v3 [ 3385283 ] |
Status | Original: Resolved [ 5 ] | New: Closed [ 6 ] |
Symptom Severity | Original: Minor [ 14432 ] | New: Severity 3 - Minor [ 15832 ] |
Resolution | New: Obsolete [ 11 ] | |
Status | Original: Open [ 1 ] | New: Resolved [ 5 ] |
Remote Link | New: This issue links to "Page (Extranet)" [ 250198 ] |
Component/s | New: .NET [ 46069 ] |
Symptom Severity | New: Minor [ 14432 ] |
Workflow | Original: Bamboo Workflow 2016 v1 [ 1420611 ] | New: Bamboo Workflow 2016 v1 - Restricted [ 1442925 ] |
Workflow | Original: Bamboo Workflow 2014 v2 [ 702872 ] | New: Bamboo Workflow 2016 v1 [ 1420611 ] |
Component/s | New: OnDemand [ 18503 ] | |
Component/s | New: Tasks [ 11224 ] | |
Component/s | New: Windows and .NET [ 13990 ] | |
Status | Original: Needs Triage [ 10030 ] | New: Open [ 1 ] |
Looks like OD specific issue.