FOSSology
4.4.0
Open Source License Compliance by Open Source Software
|
Functional testing module. More...
Go to the source code of this file.
Classes | |
class | Functional.DefineError |
class | Functional.TimeoutError |
class | Functional.testsuite |
class that handles running a test suite #################################### More... | |
Functions | |
def | Functional.timeout (func, maxRuntime) |
Allows the caller to set a max runtime for a particular function call. More... | |
def | Functional.main () |
Variables | |
Functional.defsReplace = re.compile('{([^{}]*)}') | |
utility #################################################################### | |
Functional.defsSplit = re.compile('([^\s]+):([^\s]+)') | |
Functional testing module.
Module uses a simple xml file to describe a set of functional tests. This was originally written for the FOSSology scheduler and as such is tailored to testing that piece of software.
Definition in file Functional.py.
def Functional.main | ( | ) |
Main entry point for the Functional tests
Definition at line 633 of file Functional.py.
def Functional.timeout | ( | func, | |
maxRuntime | |||
) |
Allows the caller to set a max runtime for a particular function call.
func | the function that will have the max runtime |
maxRuntime | the max amount of time alloted to the function in seconds |
Returns a Boolean, True indicating that the function finished, False otherwise
Definition at line 50 of file Functional.py.