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

MSTest Plugin instable when use Ignore flag

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Critical
    • Resolution: Fixed
    • mstest-plugin
    • None
    • Jenkins ver. 1.580.3
      MSTest Version 0.12

    Description

      With MSTest version 0.11 test with Ignore Tag is not marked as failed and in the new version 0.12 All test with Ignore flag as marked in error

      Ex:
      [Test]
      [Ignore("We don't want to test CRM's service on each build: that would be a waste of (not so) precious electricity and rare unique guids...")]
      public void When_charging_with_expired_CreditCard_Then_does_not_work()
      {
      // Ignored code
      }

      Attachments

        Activity

          Could you please attach an example trx? I was assuming that Ignored tests were not reported in the trx, as some threads in some exotic forums state. Your experience proves the opposite.

          Btw, your email address behind the one @java.net is wrong.

          nilleb Ivo Bellin Salarin added a comment - Could you please attach an example trx? I was assuming that Ignored tests were not reported in the trx, as some threads in some exotic forums state. Your experience proves the opposite. Btw, your email address behind the one @java.net is wrong.

          Code changed in jenkins
          User: nilleb
          Path:
          src/test/java/hudson/plugins/mstest/MSTestReportConverterTest.java
          src/test/resources/hudson/plugins/mstest/nilleb_HOST18468 2015-03-18 08_03_36.xml
          http://jenkins-ci.org/commit/mstest-plugin/5e72a6ee84fd9de0d704fea232fc33f71d3f5483
          Log:
          [FIXED JENKINS-27469] unit test for ignored unittests

          Compare: https://github.com/jenkinsci/mstest-plugin/compare/d48dde553cd5...5e72a6ee84fd

          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: nilleb Path: src/test/java/hudson/plugins/mstest/MSTestReportConverterTest.java src/test/resources/hudson/plugins/mstest/nilleb_HOST18468 2015-03-18 08_03_36.xml http://jenkins-ci.org/commit/mstest-plugin/5e72a6ee84fd9de0d704fea232fc33f71d3f5483 Log: [FIXED JENKINS-27469] unit test for ignored unittests Compare: https://github.com/jenkinsci/mstest-plugin/compare/d48dde553cd5...5e72a6ee84fd
          pascal_martin pascal_martin added a comment -

          Thank you for the quick fixes

          I updated my email to receive notification

          pascal_martin pascal_martin added a comment - Thank you for the quick fixes I updated my email to receive notification

          People

            nilleb Ivo Bellin Salarin
            pascal_martin pascal_martin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: