Uploaded image for project: 'Maven Surefire'
  1. Maven Surefire
  2. SUREFIRE-542

JUnit 4.4 tests skipped for a failed assumption are not reported as "Skipped"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.4.3
    • 2.7.2
    • Junit 4.x support
    • None
    • 64 bit Ubuntu 8.10, OpenJDK 6

    Description

      Junit 4.4 has support for ignoring tests at runtime via code like the following:
      Assume.assumeTrue(testsShouldBeRun());

      When running tests under Surefire that fail their assumptions, the tests are reported as successful-- not ignored as they ought to be. The javadoc for the Assume class is here: http://junit.org/apidocs/org/junit/Assume.html.

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            karlmdavis Karl M. Davis
            Votes:
            5 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: