Uploaded image for project: 'Buildr (Retired)'
  1. Buildr (Retired)
  2. BUILDR-89

JUnit TestTask runs even abstract test classes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3.1
    • 1.3.2
    • Test frameworks
    • None

    Description

      The JUnit TestTask tries to instantiate and run all classes that extend junit.framework.TestCase, even when the class is abstract.

      I get the following error output.

      [junit] Testsuite: AbstractTestCase
      [junit] Tests run: 1, Failures: 1, Errors: 0, Time elapsed: 0,014 sec
      [junit]
      [junit] Testcase: warning took 0,006 sec
      [junit] FAILED
      [junit] No tests found in AbstractTestCase
      [junit] junit.framework.AssertionFailedError: No tests found in AbstractTestCase
      [junit]
      [junit] TEST AbstractTestCase FAILED

      Attachments

        Activity

          People

            Unassigned Unassigned
            lacton Antoine Contal
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: