An Early Look at JUnit 4 147
An anonymous reader writes "Elliotte Harold, proclaimed 'obsessive code tester', took an early look at JUnit4 and shows how to best utilize the framework in your own projects. Many feel that this is one of the most important third-party Java libraries ever developed. It promises to simplify testing by exploiting Java 5's annotation feature to identify tests rather than relying on subclassing, reflection, and naming conventions."
Where was the headline when NUnit was released? (Score:1, Insightful)
Could we cut down at manager speak here (Score:2, Insightful)
JUnit and the people who don't use it... (Score:3, Insightful)
What continues to stun me about the "professional" developers out there is how few do Unit Testing even when it is so easy. People complain about jobs moving offshore and pressure on delivery and people not understanding how hard coding is... but they don't even Unit testing.
If you don't unit test then you aren't a software engineer, you are a typist who understands a programming language.
Re:JUnit and the people who don't use it... (Score:4, Insightful)
I'm opposed to Unit Testing (Score:3, Insightful)
However, I see very little effort put into end-to-end system tests, and that's a shame. The really tricky bugs come from module/process interaction. Furthermore, unlike Unit Tests, system tests reflect the end-user experience. At one place where I worked, the software was just pure crap, but the system testing was thorough and the customers loved the product.
Re:JUnit and the people who don't use it... (Score:3, Insightful)
(* No, nothing is impossible - but using junit to test JSPs is the next best thing, especially when you actually have a deadline to meet)
JUnit is a woderful tool for testing plain old Java objects, but is utterly unsuitable for end to end testing in a web (or other GUI) environment.
Re:Testing (Score:3, Insightful)
Re:Testing (Score:3, Insightful)
Regards,
Steve
Re:Why not just use TestNG? (Score:2, Insightful)