You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Paul Hammant (JIRA)" <ji...@codehaus.org> on 2013/10/13 16:54:52 UTC
[jira] (SUREFIRE-1039) Running TestNG tests (specific group) skips
@BeforeMethod methods
Paul Hammant created SUREFIRE-1039:
--------------------------------------
Summary: Running TestNG tests (specific group) skips @BeforeMethod methods
Key: SUREFIRE-1039
URL: https://jira.codehaus.org/browse/SUREFIRE-1039
Project: Maven Surefire
Issue Type: Bug
Components: TestNG support
Affects Versions: 2.16
Environment: Mac 10.8.5, Maven 3.1.0, Java version: 1.7.0_09
Reporter: Paul Hammant
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.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira