[
https://jira.codehaus.org/browse/SUREFIRE-1039?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Kristian Rosenvold closed SUREFIRE-1039.
----------------------------------------
Resolution: Not A Bug
Assignee: Kristian Rosenvold
> 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
> Assignee: Kristian Rosenvold
>
> 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