Class RerunJDoctests

java.lang.Object
net.cscott.jdoctest.RerunJDoctests

public class RerunJDoctests extends Object
This is a JUnit test which re-runs all of the doctests emitted by JDoctest. Set the net.cscott.jdoctest.output property when you emit your javadoc, and stand-alone versions of your tests will be emitted into the specified directory. If your tests are not in "api/tests", subclass this test class and override testDir() to return the directory you set net.cscott.jdoctest.output to.
Author:
C. Scott Ananian
  • Constructor Details

    • RerunJDoctests

      public RerunJDoctests()
  • Method Details

    • testDir

      protected String testDir()
      Override this in your subclass to change the test directory.
    • rerunDoctests

      @TestFactory public Stream<org.junit.jupiter.api.DynamicTest> rerunDoctests()
    • doctests

      public static Stream<org.junit.jupiter.api.DynamicTest> doctests(String testDir)
      Returns a test for each javascript test found beneath the given directory.
    • listTests

      public static List<File> listTests(String testDir)
      List all the javascript tests found beneath the given directory.