Skip to content

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 ​

NameDescription
Sol::writeReportWrites the results of the last run to disk in a format that other tools, such as continuous integration systems, can read.

Function Methods ​

NameDescription
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_config

Configuration that was loaded for this run

dir ​

type=String

Directory to search for files if they arent specified

files ​

type=List<String>

Files with tests in them

passed ​

type=Boolean

True if all tests have passed

results ​

type=OrderedHash<Sol_Result>

Result of each test file that was run, by file path

shared ​

type=Boolean

True to reuse one child process for all test files

stopOnFailure ​

type=Boolean

True to stop after the first failed test file

taskEngine ​

type=String

Location 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

Licensed under MIT.