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

FATAL: No test files was found since update to v1.2.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: mstestrunner-plugin
    • Labels:
      None
    • Environment:
      jenkins 1.627
      mstestrunner-plugin 1.2.0
    • Similar Issues:

      Description

      Job step configuration has not changed and upating plugin to last 1.2.0 results in a build failure with this message :

      Path To MSTest.exe: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\MSTest.exe
      Result file was not found so no action has been taken. file:/E:/Jenkins/workspace/DataEngine/DATAFEED.Ping/DATAFEED.Ping/DATAFEED.Tests.trx
      FATAL: No test files was found
      Build step 'Run unit tests with MSTest' marked build as failure

      Configuration is as in the attached file.
      Downgrading back to v1.1.2 restores the successfull job execution with unit tests run.

      thanks for your help on that.

        Attachments

          Activity

          Hide
          daleua David Aleu added a comment -

          I have the same issue. The workaround for me is change the step to a "Execute windows batch command" and use the whole mstest command line, for example:

          "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe" /testcontainer:"%WORKSPACE%\bin\your.dll" /resultsfile:"%WORKSPACE%\results.trx"

          Show
          daleua David Aleu added a comment - I have the same issue. The workaround for me is change the step to a "Execute windows batch command" and use the whole mstest command line, for example: "C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe" /testcontainer:"%WORKSPACE%\bin\your.dll" /resultsfile:"%WORKSPACE%\results.trx"
          Hide
          hujirong Jirong Hu added a comment -

          I am having the same issue, and using David's workaround. However, now I find I can't use regexp to identify multiple test dlls as show below:

          D:\public_jendevslave_1\workspace\DevOps\Test-MSBuild>"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe" /resultsfile:"D:\public_jendevslave_1\workspace\DevOps\Test-MSBuild\Jenkins_Master_Test.trx" /testcontainer:"D:\public_jendevslave_1\workspace\DevOps\Test-MSBuild\Jenkins_Sanity_Test*\Test.dll" /nologo
          File name "D:\public_jendevslave_1\workspace\DevOps\Test-MSBuild\Jenkins_Sanity_Test*\Test.dll" is invalid.
          For switch syntax, type "MSTest /help"

          Show
          hujirong Jirong Hu added a comment - I am having the same issue, and using David's workaround. However, now I find I can't use regexp to identify multiple test dlls as show below: D:\public_jendevslave_1\workspace\DevOps\Test-MSBuild>"C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\mstest.exe" /resultsfile:"D:\public_jendevslave_1\workspace\DevOps\Test-MSBuild\Jenkins_Master_Test.trx" /testcontainer:"D:\public_jendevslave_1\workspace\DevOps\Test-MSBuild\Jenkins_Sanity_Test* \Test .dll" /nologo File name "D:\public_jendevslave_1\workspace\DevOps\Test-MSBuild\Jenkins_Sanity_Test* \Test .dll" is invalid. For switch syntax, type "MSTest /help"
          Hide
          armfergom Armando Fernandez added a comment -

          A workaround for this would be to remove the ".\" at the beginning of your test file path. It was indeed allowed in previous versions. That's why I have raised this PR to hopefully fix it.

          Show
          armfergom Armando Fernandez added a comment - A workaround for this would be to remove the ".\" at the beginning of your test file path. It was indeed allowed in previous versions. That's why I have raised this PR to hopefully fix it.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Armando Fernandez
          Path:
          src/main/java/org/jenkinsci/plugins/MsTestBuilder.java
          src/main/resources/org/jenkinsci/plugins/MsTestBuilder/help-testFiles.html
          http://jenkins-ci.org/commit/mstestrunner-plugin/fc55c2f6f48027e08639299292bd177eb6b79ff6
          Log:
          JENKINS-30457 Allow dot-segments relative path to maintain backwards compatibility with 1.1.2 and previous versions.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Armando Fernandez Path: src/main/java/org/jenkinsci/plugins/MsTestBuilder.java src/main/resources/org/jenkinsci/plugins/MsTestBuilder/help-testFiles.html http://jenkins-ci.org/commit/mstestrunner-plugin/fc55c2f6f48027e08639299292bd177eb6b79ff6 Log: JENKINS-30457 Allow dot-segments relative path to maintain backwards compatibility with 1.1.2 and previous versions.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Ido Ran
          Path:
          src/main/java/org/jenkinsci/plugins/MsTestBuilder.java
          src/main/resources/org/jenkinsci/plugins/MsTestBuilder/help-testFiles.html
          http://jenkins-ci.org/commit/mstestrunner-plugin/e877ea9d93a281b0f7c8c530004ab1e5cfde0a37
          Log:
          Merge pull request #10 from armfergom/JENKINS-30457

          JENKINS-30457 Relative paths to test files with dots failing.

          Compare: https://github.com/jenkinsci/mstestrunner-plugin/compare/45e2597eda87...e877ea9d93a2

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Ido Ran Path: src/main/java/org/jenkinsci/plugins/MsTestBuilder.java src/main/resources/org/jenkinsci/plugins/MsTestBuilder/help-testFiles.html http://jenkins-ci.org/commit/mstestrunner-plugin/e877ea9d93a281b0f7c8c530004ab1e5cfde0a37 Log: Merge pull request #10 from armfergom/ JENKINS-30457 JENKINS-30457 Relative paths to test files with dots failing. Compare: https://github.com/jenkinsci/mstestrunner-plugin/compare/45e2597eda87...e877ea9d93a2
          Hide
          splashnenen Alexandre Aubert added a comment -

          Nice, thanks. Any estimate for the plugin update delivery date ?

          Show
          splashnenen Alexandre Aubert added a comment - Nice, thanks. Any estimate for the plugin update delivery date ?

            People

            Assignee:
            armfergom Armando Fernandez
            Reporter:
            splashnenen Alexandre Aubert
            Votes:
            2 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: