testbox.system.compat.runner

Class DirectoryTestSuite

lucee.Component
    extended by testbox.system.compat.runner.DirectoryTestSuite

MXUnit Compat Automatic Test Suite Runner

Class Attributes:
  • output : false
  •  
  • synchronized : false
  •  
  • accessors : false
  •  
  • persistent : false
  •  
    Method Summary
    remote string getComponentPath(string path)
         Given a directory path, returns the corresponding CFC package according to CFMX.
    any run(any directory, [any componentPath=''], [boolean recurse='true'], [any excludes=''])
         Runs a directory of tests via TestBox.
     
    Methods inherited from class lucee.Component
    None

    Method Detail

    getComponentPath

    remote string getComponentPath(string path)

    Given a directory path, returns the corresponding CFC package according to CFMX

    Parameters:
    path

    run

    public any run(any directory, [any componentPath=''], [boolean recurse='true'], [any excludes=''])

    Runs a directory of tests via TestBox

    Parameters:
    directory - directory of tests to run
    componentPath - the component path to put in front of all tests found (i.e. 'com.blah'). If no path is passed, we'll attempt to discover it ourselves
    recurse - whether to recurse down the directory tree
    excludes - list of Tests, in cfc notation, to exclude. uses ListContains so it's as greedy as possible. Currently does not support ant-style syntax or whole-directory filtering