jdoctest 1.5

net.cscott.jdoctest
Class RerunJDoctests

java.lang.Object
  extended by net.cscott.jdoctest.JsJUnitTestBridge
      extended by net.cscott.jdoctest.RerunJDoctests

public class RerunJDoctests
extends JsJUnitTestBridge

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. Subclass this test class and (if your tests are not in "api/tests") override the listTests() class to invoke listTests(String) with the directory you set net.cscott.jdoctest.output to. (Don't forget to make the whole thing @RunWith(value=Parameterized.class) and tag your overridden listTests() with the Parameters annotation.)

Author:
C. Scott Ananian

Field Summary
 
Fields inherited from class net.cscott.jdoctest.JsJUnitTestBridge
testFile
 
Constructor Summary
RerunJDoctests(String testFile)
           
 
Method Summary
static Collection<Object[]> listTests()
          Reimplement this in your subclass to change the test directory.
static Collection<Object[]> listTests(String testDir)
          List all the javascript tests found beneath the given directory.
 
Methods inherited from class net.cscott.jdoctest.JsJUnitTestBridge
collectAllTests, collectTestsFor, main, runDoctest, runDoctest, runDoctest, runDoctest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RerunJDoctests

public RerunJDoctests(String testFile)
Method Detail

listTests

public static Collection<Object[]> listTests()
Reimplement this in your subclass to change the test directory.


listTests

public static Collection<Object[]> listTests(String testDir)
List all the javascript tests found beneath the given directory.


jdoctest 1.5

Copyright © 2009 C. Scott Ananian