Trees | Indices | Help |
|
---|
|
object --+ | EDObject.EDObject --+ | EDLogging.EDLogging --+ | EDFactoryPlugin.EDFactoryPlugin --+ | EDFactoryPluginTest
This subclass of EDFactoryPlugin provides a factory for loading test cases for the EDNA testing framework. The function of EDFactoryPluginTest is very similar to EDFactoryPlugin, the main differences are that only files starting with "EDTest" are considered as test cases to be loaded, and that the "src" and "plugin" directories are added to the python path from two possible locations of the test case:
EDNA application, e.g. mxv1, or plugin collection e.g. mxExecPlugins:
| |-datamodel |-src |-tests | |-data | |-testsuite | | |- EDTestSuiteXXX.py | |-plugins | |-EDPlugin[name of plugin]-v1.0 | | |-plugins | | | |-EDPlugin[name of plugin]v10.py | | | |-EDPlugin[another name of plugin]v10.py | | |-tests | | | |-data | | | |-testsuite | | | | |-EDTestSuiteYYY.py
The "src" directory is searched relatively from both the EDTestSuiteXXX.py and EDTestSuiteYYY.py locations, i.e. "../../src" and "../../../../src".
The "plugins" directory is searched only from the EDTestSuiteYYY.py location, i.e. "../../plugins".
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from |
|
|||
Inherited from |
|
|||
Inherited from Inherited from |
|
|||
Inherited from |
|
For the testing framework, the plugins are test cases and test suites which starts with "EDTest" and ends with ".py".
|
For the tests, both the plugin directory and its corresponding "src" directory must be on the python path (see the class documentation for EDFactoryPluginTest). This method appends the plugin "src" directory to the system path, if it's not already present.
|
Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Fri Jun 20 03:53:30 2014 | http://epydoc.sourceforge.net |