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

Maven Surefire Plugin don't run JUnit tests if TestNG in dependencies

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Duplicate
    • 2.4.3
    • None
    • Junit 4.x support
    • None

    Description

      I have a project with a lot of JUnit test. Recently I've added new
      dependency wich have TestNG in it's dependencies. From that moment
      Surefire plugins don't run JUnit test anymore. It seems to me that
      Surefire tries to find TestNG tests but not find them and don't search
      for JUnit tests. Is this behaviour correct and how can i fix this?

      I have the following line in log:

      -------------------------------------------------------
      T E S T S
      -------------------------------------------------------
      Running TestSuite
      Tests run: 0, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.117
      sec

      Results :

      Tests run: 0, Failures: 0, Errors: 0, Skipped: 0

      Example project in attachments.

      Attachments

        1. sjt.zip
          3 kB
          Bulat Nigmatullin

        Issue Links

          Activity

            People

              Unassigned Unassigned
              bulat Bulat Nigmatullin
              Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: