PowerPoint Slideshow about ' Test-driven development (TDD) ' - veronica-norman
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
The point of TDD is to drive out the functionality the software actually needs, rather than what the programmer thinks it probably ought to have. The way it does this seems at first counterintuitive, if not downright silly, but it not only makes sense, it also quickly becomes a natural and elegant way to develop software.
Below are the installation steps for installing JUnit:
unzip the junit.zip file
addjunit.jar to the CLASSPATH. For example: set classpath=%classpath%;INSTALL_DIR\junit3\junit.jar
test the installation by using either the batch or the graphical TestRunner tool to run the tests that come with this release. All the tests should pass OK. Notice: that the tests are not contained in the junit.jar but in the installation directory directly. Therefore make sure that the installation directory is on the class path
for the batch TestRunner type: java junit.textui.TestRunner junit.samples.AllTests
for the graphical TestRunner type: java junit.awtui.TestRunner junit.samples.AllTests
for the Swing based graphical TestRunner type: java junit.swingui.TestRunner junit.samples.AllTests
Important: don\'t install the junit.jar into the extension directory of your JDK installation. If you do so the test class on the files system will not be found.