items tagged with junit
Written By: Administrator
Section: Java
Category: Framework
2004-08-31 22:52:36
In computer programming, a unit test is a method of testing the correctness of a particular module of source code. The idea is to write test cases for every non-trivial function or method in the module so that each test case is separate from the others if possible.
Read More About Apache Junit...
Written By: Administrator
Section: Java
Category: Testing
2005-04-01 14:21:25
Still hesitating about using or not using regression tests in your code? (JUNIT for java for ex.) Look here at Failed fixes haunt credibility of Microsoft's Trustworthy Computing Initiative. Even Microsoft has some problem today...because they do not have invested enough time/money/power into it....
Written By: Administrator
Section: Java
Category: Testing
2004-12-25 13:45:22
Open-source ITP - Powerful web application tester
ITP is a deceptively simple, yet powerful web testing harness. It is a stand-alone Java application that can test your website from a user's perspective. It is amazingly simple and lightweight, yet can be used for powerful test-scripting by using building blocks to create large test runs.
ITP is the fastest test harness software to learn. A test script is simply made up out of a few lines of XML. There is no programming involved! You will be testing your application in seconds.
Written By: Administrator
Section: Java
Category: Testing
2005-03-16 19:24:18
Jester - the JUnit test tester: Jester changes your source code, recompiles it, and runs your bunch of JUNIT test suite to see if anything breaks. It help the developer to verify if enough, or better the most iimportant testcases are already written...more at IBM developerWorks, do not forget to also read or reread JUnit Test Infected: Programmers Love Writing Tests essay.
A comprehensive unit-test suite is a necessity for a robust program. But how can you be sure that your test suite is testing everything it should? Jester, Ivan Moore's JUnit test tester, excels at finding test-suite problems and provides unique insights into the structure of a code base. Elliotte Rusty Harold introduces Jester and shows how to use it for best results.
Test-first programming is the least controversial and most widely adopted part of Extreme Programming (XP). By now the majority of professional Java⢠programmers have probably caught the testing bug...
This is where Jester comes in. Unlike a traditional code coverage tool such as Clover, Jester doesn't watch which lines of code have been executed. Instead Jester changes the source code, recompiles it, and runs the test suite to see if anything breaks. For instance, it will change a 1 to a 2, or change an if (x > y) to if (false). If the test suite isn't paying close enough attention to notice the change, then a test is missing.
Written By: Administrator
Section: Java
Category:
2008-08-26 20:17:40
How to remote debug test cases
Change the Team city project configuration by adding a -Dmaven.surefire.debug to Maven runner in Additional "Maven command line parameters"
Now when test cases will be executed by maven surefire plugin, the build will wait for a remote debugging application to pick it up on port 5005 and this for EVERY MODULES
meaning: If you have 5 Maven modules (= java projects) with test cases maven surefire will request 5 times you to connect with remote debugging to your build server.
Create a Remote Java Application launcher you'll also share in one eclipse project:
Don't forget to remove the -D variable or your daily build may wait for a remote debug connection! or create a special build configuration of your project targeted for debugging purpose.
Remote debugging Maven plugin
put into "JVM command line parameters:" these settings:
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5006
Create a Remote Java Application launcher you'll also share in one eclipse project that will connect to the port 5006.
There are 8 items tagged with junit. You can view all our tags in the Tag Cloud

















