java - JUnit 4 vs. TestNG 6 -
this question has answer here:
the question classic , has been asked several times. questions , answers few years old now.
so differences of junit , testng in current versions? there still important features of testng missing in junit? how easy powermock integration? tool support (quality of ide , ci server plugins).
or, asked other way around: there reasons prefer junit on testng?
after more research i've found following advantages of testng compared junit:
- support multi threading tests
- better test parameterization
- more detailed reports
- better grouping of tests
- test prioritization
- dependencies between tests (useful integration test , gui tests)
- much better documentation
- additional setup/teardown levels (@before/aftersuite, @before/aftertest, @before/aftergroup)
- tends faster in execution
references:
http://kaczanowscy.pl/tomek/sites/default/files/testng_vs_junit.txt.slidy_.html#(1) http://kaczanowscy.pl/tomek/sites/default/files/2013_junit_and_testng.html#(1) http://softwaretestingguide4u.blogspot.de/2013/01/junit-4-vs-testng.html http://architects.dzone.com/articles/how-i-learned-stop-worrying-0 http://www.intertech.com/blog/post/java-qa-tools-for-unit-testing.aspx http://roadtoautomation.blogspot.de/2013/02/testng-vs-junit-4.html
Comments
Post a Comment