This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
So, I'm running my JUnit tests via Ant inside IntelliJ IDEA 4.0.
Two things are bothering me:
1- when I run the script it executes each of the targets and lists them in the ant window (all fine and good). The problem is, it lists all the targets collapsed, and I'd like to see the results of the Junit tests. So, by default, I'd like it to expand the "test-junit" target.
2- if the junit tests fail, it should say the build failed too -- but it doesn't! It says "build successful" and because of problem #1, I don't know that the build really failed until I click on the "test-junit" target.
Our project is Makefile-driven; we have makefiles that build everything and run tests. They're used by the nightly builds, and I'll occasionally use them myself. But when I'm testing in IDEA, I just use the native JUnit runner. So we have both, too. Never been a problem.