Skip to content

Luna ​

See the function luna() for creation details

idl
;+
; :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 ​

NameDescription
Luna::checkStatusProcedure method that checks status and raises an expection if we have failed any tests.
Luna::generateTestSummaryMethod that prints test summary to the IDL Console for quick visualization of how the overall test process went.

Function Methods ​

NameDescription
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=String

Directory 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=String

File we come from.

generatedSummary ​

type=Long

Flag for whether the test summary has been generated.

is_workbench ​

type=Int

Flag for whether we are running in the workbench.

logFile ​

type=String

Path to a file on disk where we can log.

nFailed ​

type=Long

Number of tests that we have failed.

nTests ​

type=Long

Number of tests that we have.

passed ​

type=Long

Flag for whether all tests have passed.

platform ​

type=String

Platform that we are running on.

routine_name ​

type=String

Name of the routine/file we are processing.

startTime ​

type=Double

Time in seconds when the tests started, used for the summary.

suites ​

type=List<suite>

All test suites that we create.

Licensed under MIT.