testng-team / testng-googlecode

DEPRECATED: Automatically exported from code.google.com/p/testng
0 stars 0 forks source link

@BeforeTest / @BeforeSuite not handled properly for subclass #22

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Download the attached file
2. Run "mvn test"
3.

What is the expected output? What do you see instead?

Expected:

...
beforeSuite
Running com.autodesk.testsf.SFTest
beforeTest com.autodesk.testsf.SFTest@1690726
SFTest.testTrue
afterTest com.autodesk.testsf.SFTest@1690726
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.015 sec
Running com.autodesk.testsf.SF2Test
beforeTest com.autodesk.testsf.SF2Test@1820dda
SF2Test.testTrue
afterTest com.autodesk.testsf.SF2Test@1820dda
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.016 sec
afterSuite

Not expected:

...
beforeSuite
beforeTest com.autodesk.testsf.SF2Test@14b7453
SF2Test.testTrue
SFTest.testTrue
afterTest com.autodesk.testsf.SF2Test@14b7453
afterSuite
Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.125 sec
<<< FAILURE!

What version of the product are you using? On what operating system?

TestNG 5.6 and Maven Surefire 2.4.2

Please provide any additional information below.

See this as well:
https://jira.codehaus.org/browse/SUREFIRE-396?page=com.atlassian.jira.plugin.sys
tem.issuetabpanels:comment-tabpanel

Original issue reported on code.google.com by generice...@gmail.com on 9 Apr 2008 at 5:44

Attachments:

GoogleCodeExporter commented 9 years ago
I've verified this problem to occur in 5.10

Original comment by alanli...@gmail.com on 23 Jul 2009 at 5:59