This repository has been archived by the owner on Jun 3, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 254
UnitTests
Grant Gainey edited this page Dec 12, 2016
·
2 revisions
You can use ant on machine with installed spacewalk.
In order to run the unit tests, the following must first be done:
- 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/.
Do you want to contribute to this wiki? See page WikiContribute for more info.