Skip to content

Sol::runTests() ​

Member of Sol

idl
;+
; :Returns: Boolean
;-
result = Sol.runTests( $
  filter = value $
    / no_restart)

Function that runs the tests and returns a simple true or false if everything passed. Returns true if all tests pass.

Keywords ​

filter ​

optionalinputtype=String | Array<String>

Only run the test files that match at least one of these glob patterns, which are matched against the path relative to the test directory (see sol_glob). A pattern without *, ?, or / matches any file with that text in its path, so FILTER = 'strings' runs every spec with strings in its path.

no_restart ​

optionalinputtype=Boolean

If set, the same IDL-IDLBridge process will be used to run each task. This is also the case when run.isolation is shared in the configuration file.

Be ready for challenging debugging with many tests. There wil likely be odd errors from variables that are contants/objects/static methods.

Can greatly speed up tests, but adds complexity for writing the tests.

Licensed under MIT.