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 Details

    • Tester

      Tester()
  • Method Details

    • test

      public void test​(BuildLogger log, String path) throws TestingException
      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

      private int[] parseStat​(String s, BuildLogger log)
      parseStat is a helper method used for parsing the test statistics for easier logging.
      Parameters:
      s - String with test statistics
      log - Logging object