LSSTApplications
10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
|
A class to control unit tests. More...
Public Member Functions | |
def | __init__ |
Create an object to run tests. More... | |
def | args |
def | ignore |
def | messages |
def | run |
Public Attributes | |
runExamples | |
Private Attributes | |
_env | |
_tmpDir | |
_cwd | |
_verbose | |
_info | |
_args | |
Static Private Attributes | |
string | _IGNORE = "IGNORE" |
string | _EXPECT_FAILURE = "EXPECT_FAILURE" |
A class to control unit tests.
This class is unchanged from previous versions of sconsUtils, but it will now generally be called via scripts.BasicSConscript.tests().
def lsst.sconsUtils.tests.Control.__init__ | ( | self, | |
env, | |||
ignoreList = None , |
|||
expectedFailures = None , |
|||
args = None , |
|||
tmpDir = ".tests" , |
|||
verbose = False |
|||
) |
Create an object to run tests.
env | An SCons Environment (almost always lsst.sconsUtils.env). |
ignoreList | A list of tests that should NOT be run — useful in conjunction with glob patterns. If a file is listed as "@fileName", the @ is stripped and we don't bother to check if fileName exists (useful for machine-generated files). |
expectedFalures | A dictionary; the keys are tests that are known to fail; the values are strings to print. |
args | A dictionary with testnames as keys, and argument strings as values. As scons always runs from the top-level directory, tests has to fiddle with paths. If an argument is a file this is done automatically; if it's e.g. just a basename then you have to tell tests that it's really (part of a) filename by prefixing the name by "file:". |
tmpDir | The location of the test outputs. |
verbose | How chatty you want the test code to be. |
Definition at line 52 of file tests.py.
def lsst.sconsUtils.tests.Control.args | ( | self, | |
test | |||
) |
def lsst.sconsUtils.tests.Control.messages | ( | self, | |
test | |||
) |
def lsst.sconsUtils.tests.Control.run | ( | self, | |
fileGlob | |||
) |
|
staticprivate |
|
staticprivate |