|
MXUnit 2.1.3 (Generated: 09/27/2012) | ||||
FRAMES |
WEB-INF.cftags.componentmxunit.runner.DirectoryTestSuite
public class DirectoryTestSuite
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 |
---|
private any accept(any test, any excludes)
test
excludes
private any formatTestPath(any directory, [any fullFilePath], any componentPath)
directory
- directory of tests to runfullFilePath
componentPath
- the component path to put in front of all tests found (i.e. 'com.blah')public any getCatastrophicErrors()
remote string getComponentPath(string path, [boolean refreshCache='false'])
path
refreshCache
private query getDirectoryQuery(any directory, [boolean recurse='true'])
directory
- directory of tests to runrecurse
- whether to recurse down the directory treeprivate any getTests(any directory, any componentPath, [boolean recurse='true'], [any excludes=''])
directory
- directory of tests to runcomponentPath
- the component path to put in front of all tests found (i.e. 'com.blah')recurse
- whether to recurse down the directory treeexcludes
- ant-style syntax for excluding single files or directoriesprivate any normalizeDirectory(string Directory)
Directory
public string normalizePath(string path)
path
public any run(any directory, [any componentPath=''], [boolean recurse='true'], [any excludes=''], [any refreshCache='false'])
directory
- directory of tests to runcomponentPath
- 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 ourselvesrecurse
- whether to recurse down the directory treeexcludes
- 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 filteringrefreshCache
- 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) | ||||
FRAMES |