Skip to content

Test ​

See the function Test() for creation details

idl
;+
; :Returns: test
;-
result = Test(luna_suite, description, $
  _ref_extra = value)

Init method for the IDL package test suite tests. Should only be called from a Suite object an not on it's own.

Known Methods ​

Function Methods ​

NameDescription
Test::expects()This method generates a new expectation for a test to pass or fail.

Known Properties ​

description ​

type=String

Test description.

expectations ​

type=List<Expectation>

Expectations that belong to this test.

file ​

type=String

File that the test was called from.

is_workbench ​

type=Long

Flag for whether we are running in the workbench.

lastTime ​

type=Double

Time in seconds when the last expectation finished.

logFile ​

type=String

File that results are logged to.

luna_suite ​

type=Suite

Parent suite.

passed ​

type=Long

Flag for whether the test passed.

platform ​

type=String

Platform that we are running on.

Licensed under MIT.