![]()
Contributors |
Software::JUnit Build Step |
||
Elixir's IDE has a powerful capability to add some process into the compilation step. Since in theory, I run the Unit tests for each object immediately after compiling my source code, I don't need this step. The reality is that I am sometimes lazy, and don't run my JUnit tests all the time. This tool allows me to place the JUnit test cases directly into the compilation process. If any unit tests fail, then they are listed in the same way that compiler errors are. With a line number and a file to edit. If you haven't used JUnit before, here is the short description of how to use it.
To add this as a build step, you need to place the following into your MyProject.project.make file. The step looks like: <step code="junit.elixir.JUnitBuildStep"> <param name="root" value="c:\MySource\"/> <param name="prefix" value="Test"/> <step> The root parameter tells which directory contains the top level package. For instance, if I had a class that was in the package org.acm.seguin.refactor. The root parameter specifies the directoring containing org. The prefix parameter tells the build step the name of the unit test object. The object should be Test plus the name of the object being tested. |
|||
![]() |
Last Modified: October 7, 2003 |