Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-14823

Usage of MSTest Runner is not accessible unless implementing a workaround

    XMLWordPrintable

Details

    • Bug
    • Resolution: Obsolete
    • Low
    • None
    • 5.4-OD-5
    • .NET, OnDemand, Tasks, Windows
    • None

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: