Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-32020

Cannot use Tfspublisher for vstestrunner-plugin. Console output says Error: Could not find a test logger with URI or FriendlyName

XMLWordPrintable

      1) Built the solution with MSbuild: Solution gets built successfully

      2) Next build step uses vstest.console to run tests with below data:

      vstestversion: vstest.console.exe
      Test files: <c:**********.dll>
      Test name: <test script>
      selected Use Vsix Extensions checkbox
      Platform: None
       .NET Framework Version: NET Framework 4.0            
      Specify a logger for test results: Other
      /logger:TfsPublisher;Collection="https://**";TeamProject=xxxx;BuildName="xxx";Platform="Any CPU";Flavor="Release"

      Solution builds successfully but test execution doesn't start. Console output shows:
      Error: Could not find a test logger with URI or FriendlyName
      Build step 'Run unit tests with VSTest.console' marked build as failure

      The same command when executed from command line launches the tests successfully, publishes the results to MTM and prints out an URL for accessing the results

            Unassigned Unassigned
            saraci saranya nandagopal
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: