Usage of MSTest Runner is not accessible unless implementing a workaround

XMLWordPrintable

    • Type: Bug
    • Resolution: Obsolete
    • Priority: Low
    • None
    • Affects Version/s: 5.4-OD-5
    • Component/s: .NET, OnDemand, Tasks, Windows
    • None
    • Severity 3 - Minor

      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.exe

      2) Configure plan test job

      3) Add Task > Script

      Inline Script Body: IF EXIST %1 DEL %1 
      Argument: ${bamboo.buildResultKey}-${bamboo.buildNumber}.trx

      4) Add Task > Command

      Executable: MSTest
      Argument: /testcontainer:[INSERT_YOUR_TEST.DLL] /resultsfile:${bamboo.buildResultKey}-${bamboo.buildNumber}.trx

      5) Add Task > MSTest Parser

      MSTest Test Results File/Directory: ${bamboo.buildResultKey}-${bamboo.buildNumber}.trx

            Assignee:
            Unassigned
            Reporter:
            Paul Greig
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: