Class JUnitTester

java.lang.Object
com.spertus.jacquard.common.Tester
com.spertus.jacquard.junittester.JUnitTester

public class JUnitTester extends Tester
A tester that runs JUnit tests having the GradedTest annotation.
  • Constructor Details

    • JUnitTester

      public JUnitTester(Class<?>... classes)
      Constructs a JUnit tester that will run tests in the specified classes.
      Parameters:
      classes - the classes containing the tests
    • JUnitTester

      public JUnitTester(String packageName, boolean includeSubpackages)
      Constructs a JUnit tester that will run tests in the specified package and (optionally) its subpackages.
      Parameters:
      packageName - the package containing the tests
      includeSubpackages - whether to include tests in subpackages of the package
  • Method Details

    • run

      public List<Result> run()
      Description copied from class: Tester
      Runs the tests.
      Specified by:
      run in class Tester
      Returns:
      the results