MXUnit 2.1.3 (Generated: 09/27/2012)

mxunit.runner
Class DirectoryTestSuite

WEB-INF.cftags.component
        extended by mxunit.runner.DirectoryTestSuite

public class DirectoryTestSuite
extends WEB-INF.cftags.component

automatic test suite runner


Method Summary
private any accept(any test, any excludes)
          rudimentary initial implementation
private any formatTestPath(any directory, [any fullFilePath], any componentPath)
 any getCatastrophicErrors()
remote string getComponentPath(string path, [boolean refreshCache='false'])
          Given a directory path, returns the corresponding CFC package according to CFMX
private query getDirectoryQuery(any directory, [boolean recurse='true'])
private any getTests(any directory, any componentPath, [boolean recurse='true'], [any excludes=''])
private any normalizeDirectory(string Directory)
          makes sure every directory has ending slashes
 string normalizePath(string path)
 any run(any directory, [any componentPath=''], [boolean recurse='true'], [any excludes=''], [any refreshCache='false'])
          runs a directory of tests
 
Methods inherited from class WEB-INF.cftags.component
 

Method Detail

accept

private any accept(any test, any excludes)
rudimentary initial implementation.

Parameters:
test
excludes

formatTestPath

private any formatTestPath(any directory, [any fullFilePath], any componentPath)

Parameters:
directory - directory of tests to run
fullFilePath
componentPath - the component path to put in front of all tests found (i.e. 'com.blah')

getCatastrophicErrors

public any getCatastrophicErrors()


getComponentPath

remote string getComponentPath(string path, [boolean refreshCache='false'])
Given a directory path, returns the corresponding CFC package according to CFMX

Parameters:
path
refreshCache

getDirectoryQuery

private query getDirectoryQuery(any directory, [boolean recurse='true'])

Parameters:
directory - directory of tests to run
recurse - whether to recurse down the directory tree

getTests

private any getTests(any directory, any componentPath, [boolean recurse='true'], [any excludes=''])

Parameters:
directory - directory of tests to run
componentPath - the component path to put in front of all tests found (i.e. 'com.blah')
recurse - whether to recurse down the directory tree
excludes - ant-style syntax for excluding single files or directories

normalizeDirectory

private any normalizeDirectory(string Directory)
makes sure every directory has ending slashes

Parameters:
Directory

normalizePath

public string normalizePath(string path)

Parameters:
path

run

public any run(any directory, [any componentPath=''], [boolean recurse='true'], [any excludes=''], [any refreshCache='false'])
runs a directory of tests

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
refreshCache - flag to indicate whether or not to refresh the CF cache of CFCs. Maybe needed if any of the tests in the directory have not yet been compiled - to do: prove

MXUnit 2.1.3 (Generated: 09/27/2012)