[ http://jira.codehaus.org/browse/SUREFIRE-479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Fabulich closed SUREFIRE-479. --------------------------------- Resolution: Cannot Reproduce I can't reproduce this. I've attached a sample Maven project that follows your guidelines with println commands in init, cleanup and testSomething. When I run "mvn test" in that project, I see: init something cleanup which tells me that TestNG is working correctly. If you don't see that in your output, please reopen the bug. > @BeforeClass and @AfterClass on parent class are not executed > ------------------------------------------------------------- > > Key: SUREFIRE-479 > URL: http://jira.codehaus.org/browse/SUREFIRE-479 > Project: Maven Surefire > Issue Type: Bug > Components: TestNG support > Affects Versions: 2.4.2 > Reporter: Erik Putrycz > Attachments: surefire479.zip > > > I have > public abstract class A { > @BeforeClass > public void init() {...} > @AfterClass > public void cleanup() {...} > } > and > @Test > public class TestA extends A { > public void testSomething() {...} > } > when surefire executes testSomething, the @BeforeClass and @AfterClass are > never being called. I have testng 5.7. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira