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.
Hi, When I run a junittest class from GUI through IDE it shows "assertion failed" error when it is supposed to, but it shows "build successful" when I run "ant Junit" for the same code. Please reply to my query. Thanks vijay
Jon, I am somewhat new to JUnit. What I understand: 1. from the command "ant JUnit" is, it runs all the test cases in the project and shows the result. 2. from running a single junit test class through UI is, it just runs that class. Am I right? if yes, then with the same code, when I run a single test class it shows me "assertion failed" when its supposed to, but it shows "build successful" through the command, "ant junit" for the whole project. Hope I didnt present my query in a very confusing manner. Thanks, vijay
"ant junit" tells us that your Ant build script has a target named "junit". However, it doesn't tell us what your "junit" target does... Also, we don't know what your test is about, which might be useful to know regarding solving the mystery. Thus, 1) post your <target name="junit" ...>...</target> 2) post your testXXX() method (the one that's failing)