Luna
See the function luna() for creation details
;+
; :Returns: luna
;-
result = luna(routines, $
_ref_extra = value, $
bridge_debug_log = value, $
config_file = value, $
log_file = value, $
/no_log, $
/no_routines, $
/profile)Init method for the luna code tester. You are only allowed to call this routine from a main level program so that it will work correctly with sol, the code test runner.
Note: this object can only be created from main level programs.
Known Methods
Procedure Methods
| Name | Description |
|---|---|
| Luna::checkStatus | Procedure method that checks status and raises an expection if we have failed any tests. |
| Luna::generateTestSummary | Method that prints test summary to the IDL Console for quick visualization of how the overall test process went. |
Function Methods
| Name | Description |
|---|---|
| Luna::getStatus() | Method that returns if we have passed or not as true/false. |
| Luna::suite() | Creates a new test suite. |
Known Properties
dir
type=StringDirectory we are running tests in.
failureMessages
type=List<String>Description of each failed expectation, in the same order as failures.
failures
type=List<String>Files and lines where there are failures.
file
type=StringFile we come from.
generatedSummary
type=LongFlag for whether the test summary has been generated.
is_workbench
type=IntFlag for whether we are running in the workbench.
logFile
type=StringPath to a file on disk where we can log.
nFailed
type=LongNumber of tests that we have failed.
nTests
type=LongNumber of tests that we have.
passed
type=LongFlag for whether all tests have passed.
platform
type=StringPlatform that we are running on.
routine_name
type=StringName of the routine/file we are processing.
startTime
type=DoubleTime in seconds when the tests started, used for the summary.
suites
type=List<suite>All test suites that we create.