Sol
See the function sol() for creation details
idl
;+
; :Returns: sol
;-
result = sol(dir, $
_ref_extra = value, $
config_file = value, $
/config_path_full, $
test_files = value, $
test_source = value)Init method for the Sol test runner. Locates the test files and the source files to check for code coverage using the options in an idltest.json configuration file (see sol_config). Without a configuration file, all .spec.pro files in dir are run.
Known Methods
Procedure Methods
| Name | Description |
|---|---|
| Sol::writeReport | Writes the results of the last run to disk in a format that other tools, such as continuous integration systems, can read. |
Function Methods
| Name | Description |
|---|---|
| Sol::runFile() | Runs a single test file in its own child process and adds it to the results and the code coverage of this object. |
| Sol::runTests() | Function that runs the tests and returns a simple true or false if everything passed. |
Known Properties
config
type=sol_configConfiguration that was loaded for this run
dir
type=StringDirectory to search for files if they arent specified
files
type=List<String>Files with tests in them
passed
type=BooleanTrue if all tests have passed
results
type=OrderedHash<Sol_Result>Result of each test file that was run, by file path
shared
type=BooleanTrue to reuse one child process for all test files
stopOnFailure
type=BooleanTrue to stop after the first failed test file
taskEngine
type=StringLocation of the IDL task engine
testInfo
type=Hash<any>Like coverage, but for test information
testSource
type=List<String>Regular PRO code files that we are testing
testStats
type=Hash<any>Like coverage stats, but for tests