Package kth.soffgrupp.se
Class Tester
java.lang.Object
kth.soffgrupp.se.Tester
class Tester extends Object
This class runs the tests on the Maven project in the directory ./test/assignment2/
-
Constructor Summary
Constructors Constructor Description Tester() -
Method Summary
Modifier and Type Method Description private int[]parseStat(String s, BuildLogger log)parseStat is a helper method used for parsing the test statistics for easier logging.voidtest(BuildLogger log, String path)The test method opens a new process to run the project tests.
-
Constructor Details
-
Tester
Tester()
-
-
Method Details
-
test
The test method opens a new process to run the project tests. The stdout and stderror of the compilation process is printed to the servers stdout. In the case of an IOException, the exceptions stacktrace is printed to the servers stdout. The method writes the test results to the log object.- Parameters:
log- Object for logging the build- Throws:
TestingException
-
parseStat
parseStat is a helper method used for parsing the test statistics for easier logging.- Parameters:
s- String with test statisticslog- Logging object
-