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

Running TestNG tests (specific group) skips @BeforeMethod methods

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 2.16
    • None
    • TestNG support
    • None
    • Mac 10.8.5, Maven 3.1.0, Java version: 1.7.0_09

    Description

      1. In Intellij right-click run-test executes the test method immediately after the setup method (marked @BeforeMethod).

      2. Running on the command line (mvn) the same two methods are executed.

      3. After making a group, and putting the group in a profile (as per http://stackoverflow.com/questions/7150302/excluding-testng-groups-from-maven) the test method is invoked, but the @BeforeMethod method was not invoked before it.

      I was going to debug it, so that I could tell you root cause defect, but IDEA conspires to now show me all the breakpoints of the plugin before the actual test invocation.

      Attachments

        Activity

          People

            krosenvold Kristian Rosenvold
            paul Paul Hammant
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: