UnitTestHarness
1.0
Unit Testing Tool
|
Automatically finds the test suites and test cases. More...
Functions | |
void | fwUnitTestComponentTestDiscovery_testDiscoveryForComponent (const string componentName, mapping &scriptsTestRoutines) |
string | fwUnitTestComponentTestDiscovery_getTestScriptPathName (const string componentName, string scriptName) |
void | fwUnitTestComponentTestDiscovery_getTests (mapping &tests) |
dyn_string | fwUnitTestComponentTestDiscovery_appendArraysNoDuplicates (dyn_string array1, dyn_string array2) |
void | fwUnitTestComponentTestDiscovery_getTestSuiteFiles (const dyn_string componentsToTest, mapping &testSuiteFiles) |
private dyn_string | fwUnitTestComponentTestDiscovery_getScriptsForComponentsPath (const string componentName, const string path) |
void | fwUnitTestComponentTestDiscovery_getTestScriptsFrom (const string testPath, dyn_string &testFiles) |
private void | fwUnitTestComponentTestDiscovery_getTestScriptsRecurse (const string testPath, dyn_string componentsToExclude, dyn_string &testFiles) |
private bool | doesNotAlreadyContainTestScript (dyn_string testFiles, string toBeAddedTestScript) |
void | fwUnitTestComponentTestDiscovery_getTestCaseRoutines (const dyn_string testScriptPathNames, mapping &scriptsTestRoutines) |
bool | fwUnitTestComponentTestDiscovery_getTestRoutinesFromScript (const string testScriptPathName, dyn_string &testRoutines) |
bool | fwUnitTestComponentTestDiscovery_getSuiteSetupRoutineFromScript (const string testScriptPathName, string &suiteSetupRoutine) |
bool | fwUnitTestComponentTestDiscovery_getSuiteTeardownRoutineFromScript (const string testScriptPathName, string &suiteTeardownRoutine) |
bool | fwUnitTestComponentTestDiscovery_getCaseSetupRoutineFromScript (const string testScriptPathName, string &caseSetupRoutine) |
bool | fwUnitTestComponentTestDiscovery_getCaseTeardownRoutineFromScript (const string testScriptPathName, string &caseTeardownRoutine) |
private bool | fwUnitTestComponentTestDiscovery_getRoutinesThatMatchPattern (const string testScriptPathName, const dyn_string patterns, dyn_string &testRoutines) |
private bool | fwUnitTestComponentTestDiscovery_multiPatternMatch (const dyn_string patterns, const string line) |
Variables | |
const dyn_string | TEST_DIRECTORIES = makeDynString("/scripts/test/", "/scripts/libs/test/", "/scripts/libs/Test/", "/scripts/Test/") |
Automatically finds the test suites and test cases.
private bool doesNotAlreadyContainTestScript | ( | dyn_string | testFiles, |
string | toBeAddedTestScript | ||
) |
[in] | toBeAddedTestFile | string |
[out] | testFiles | dyn_string, list of test files within the testPath |
dyn_string fwUnitTestComponentTestDiscovery_appendArraysNoDuplicates | ( | dyn_string | array1, |
dyn_string | array2 | ||
) |
[in] | array1 | dyn_string, Array to be appended to. |
[in] | array2 | dyn_string, Array to be appended. |
bool fwUnitTestComponentTestDiscovery_getCaseSetupRoutineFromScript | ( | const string | testScriptPathName, |
string & | caseSetupRoutine | ||
) |
[in] | testScriptPathName | string, |
[out] | caseSetupRoutine | string, |
bool fwUnitTestComponentTestDiscovery_getCaseTeardownRoutineFromScript | ( | const string | testScriptPathName, |
string & | caseTeardownRoutine | ||
) |
[in] | testScriptPathName | string, |
[out] | caseTeardownRoutine | string, |
private bool fwUnitTestComponentTestDiscovery_getRoutinesThatMatchPattern | ( | const string | testScriptPathName, |
const dyn_string | patterns, | ||
dyn_string & | testRoutines | ||
) |
[in] | testScriptPathName | string, Script to be searched. |
[in] | patterns | dyn_string |
[out] | testRoutines | dyn_string, List of routines that matches the given patterns. |
private dyn_string fwUnitTestComponentTestDiscovery_getScriptsForComponentsPath | ( | const string | componentName, |
const string | path | ||
) |
[in] | componentName | string, the name of the component you wish to find the tests for. |
[in] | path | string, will either be the PROJ_PATH or installationDirectoryPath |
bool fwUnitTestComponentTestDiscovery_getSuiteSetupRoutineFromScript | ( | const string | testScriptPathName, |
string & | suiteSetupRoutine | ||
) |
[in] | testScriptPathName | string, |
[out] | suiteSetupRoutine | string, |
bool fwUnitTestComponentTestDiscovery_getSuiteTeardownRoutineFromScript | ( | const string | testScriptPathName, |
string & | suiteTeardownRoutine | ||
) |
[in] | testScriptPathName | string, |
[out] | suiteTeardownRoutine | string, |
void fwUnitTestComponentTestDiscovery_getTestCaseRoutines | ( | const dyn_string | testScriptPathNames, |
mapping & | scriptsTestRoutines | ||
) |
[in] | testScriptPathNames | dyn_string, List of all the test script path names |
[out] | scriptsTestRoutines | mapping, key = testScriptPathName, value = test case routines |
bool fwUnitTestComponentTestDiscovery_getTestRoutinesFromScript | ( | const string | testScriptPathName, |
dyn_string & | testRoutines | ||
) |
[in] | testScriptPathNames | string |
[out] | testRoutines | dyn_string, The test routines found within the testScript |
void fwUnitTestComponentTestDiscovery_getTests | ( | mapping & | tests | ) |
[out] | tests | mapping, key= component name, value=(mapping key = suitesToRun, value = test cases) |
string fwUnitTestComponentTestDiscovery_getTestScriptPathName | ( | const string | componentName, |
string | scriptName | ||
) |
[in] | componentName | string, The component the test script belongs to. |
[in] | scriptName | string, the name of the test script you wish to find the path of. |
void fwUnitTestComponentTestDiscovery_getTestScriptsFrom | ( | const string | testPath, |
dyn_string & | testFiles | ||
) |
[in] | testPath | string, Path to look in for the test scripts. |
[out] | testFiles | dyn_string, list of test files within the testPath |
private void fwUnitTestComponentTestDiscovery_getTestScriptsRecurse | ( | const string | testPath, |
dyn_string | componentsToExclude, | ||
dyn_string & | testFiles | ||
) |
[in] | testPath | string, Path to look in for the test scripts. |
[in] | componentsToExclude | dyn_string, Paths to exclude, used to stop multiple calls with the same filePath. |
[out] | testFiles | dyn_string, list of test files within the testPath |
void fwUnitTestComponentTestDiscovery_getTestSuiteFiles | ( | const dyn_string | componentsToTest, |
mapping & | testSuiteFiles | ||
) |
[in] | componentsToTest | dyn_string, the name of the components you wish to find the tests for. |
[out] | testSuiteFiles | mapping, the key is the name of the component, value is dyn_string of pathnames for the test suite files |
private bool fwUnitTestComponentTestDiscovery_multiPatternMatch | ( | const dyn_string | patterns, |
const string | line | ||
) |
[in] | patterns | dyn_string, |
[in] | line | string, |
void fwUnitTestComponentTestDiscovery_testDiscoveryForComponent | ( | const string | componentName, |
mapping & | scriptsTestRoutines | ||
) |
[in] | componentName | string, The component the test script belongs to. |
[out] | scriptsTestRoutines | mapping, key = script path name, value = string[] of test routines. |
const dyn_string TEST_DIRECTORIES = makeDynString("/scripts/test/", "/scripts/libs/test/", "/scripts/libs/Test/", "/scripts/Test/") |