Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

UnitTests

Grant Gainey edited this page Dec 12, 2016 · 2 revisions

Unit Tests

You can use ant on machine with installed spacewalk.

In order to run the unit tests, the following must first be done:

  1. Ensure that the spacewalk-java-tests package is installed.

To run a set of Unit tests within ant, simply run:

# ant -f /usr/share/rhn/unittest.xml -Dtestcase=ClassName

where ClassName is the name of the class containing unit tests. For example:

# ant -f /usr/share/rhn/unittest.xml -Dtestcase=CobblerCommandTest

Test logs are stored in /tmp/reports/.

Clone this wiki locally