Re: [jboss-user] [JBoss Tools] - Test Driven Development (TDD) and Moving Forward with Less Technical Debt
by Denis Golovin
Denis Golovin [http://community.jboss.org/people/dgolovin] commented on the document
"Test Driven Development (TDD) and Moving Forward with Less Technical Debt"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-15096#comment-3073
--------------------------------------------------
The problem with current tests is that unit and integration testing are mixed now. That takes time to run and most likely it fails because of integration tests. Failing the build after first test failure is a big usability problem, because you cannot see whole picture and have to fix test issues step by step.
> "Better yet, TestNG complements its dependency testing setup with a mechanism for rerunning only failed tests."
JUnit UI in eclipse also has similar action to "Rerun Test", but it just rerun failures first, but our JUnit tests not always support rerunning one test from suite.
--------------------------------------------------
15 years, 7 months
Re: [jboss-user] [JBoss Tools] - Test Driven Development (TDD) and Moving Forward with Less Technical Debt
by Brian Fitzpatrick
Brian Fitzpatrick [http://community.jboss.org/people/bfitzpat] commented on the document
"Test Driven Development (TDD) and Moving Forward with Less Technical Debt"
To view all comments on this document, visit: http://community.jboss.org/docs/DOC-15096#comment-3072
--------------------------------------------------
Rodney, I've heard a few things from Nick and Max, but don't have enough details yet to suggest TestNG over JUnit.
Max says: "We will more likely use junit4 than move to testng…(unless the eclipse ecosystem changes or there are some massive good reason for testng)"
Nick mentioned that "considering we have the problem right now w/ tycho that the first test to fail == rest of the build fails", TestNG might help us. "TestNG’s trick of skipping, rather than failing, can really take the pressure off in large test suites. Rather than trying to figure out why 50 percent of the test suite failed, your team can concentrate on why 50 percent of it was skipped! Better yet, TestNG complements its dependency testing setup with a mechanism for rerunning only failed tests."
The JUnit 4 vs. TestNG comparison ( http://www.mkyong.com/unittest/junit-4-vs-testng-comparison/ http://www.mkyong.com/unittest/junit-4-vs-testng-comparison/) has some details in it as well.
My gut says that because Eclipse has such solid support for JUnit already, it's going to be tough to move away from it. And since we're already adding SWTBot testing into the mix, that's going to be enough to keep us busy and testing for a while.
But I don't have much in the way of evidence to back up my gut at this point.
--------------------------------------------------
15 years, 7 months