ecl-logo Documentation

RunValidQTest

RunValidQTest[items,lookupFunctions]bools

returns True/False for each of items based on excuting the tests for that item given by lookupFunctions.

RunValidQTest[item,lookupFunctions]bool

returns True/False based on excuting the tests for given item given by lookupFunctions.

Details

  • lookupFunctions are expected to take an 'item' as input and return a list of TestP|ExampleP.
  • If OutputFormat -> Test, no tests are executed.
  • Input
    Output
    General Options
    Messages
  • InvalidTestsFunctions at positions `1` did not return valid lists of tests.

Examples

Basic Examples  (2)

Single input item returns True if all tests for given input pass:

Multiple input items returns a single True/False if all the inputs pass/fail their tests (gettings tests using given lookup functions):

Additional Examples  (1)

Lookup functions can be specified as pure functions as well as symbols:

Options  (9)

Association  (1)

Returns an Association of EmeraldTestSummary objects instead of booleans if OutputFormat->TestSummary Association->True:

OutputFormat  (3)

Returns EmeraldTestSummary objects instead of booleans if OutputFormat->TestSummary:

Returns a list booleans (one for each input) instead of single boolean if OutputFormat->BooleanList:

Returns a list booleans (one for each input) instead of single boolean if OutputFormat->Boolean & Association -> True:

PrintIndexOnly  (1)

Only print the index of the input instead of the entire input when displaying progress (this is useful for large inputs to save space):

SummaryNotebook  (1)

Inherits SummaryNotebook option for RunUnitTest:

SymbolSetUp  (1)

Don't run the SymbolSetUp/SymbolTearDown for the given function if SymbolSetUp -> False:

Verbose  (2)

Inherits Verbose option for RunUnitTest:

Inherits Verbose option for RunUnitTest:

Messages  (1)

InvalidTests  (1)

If any lookup function does not return a list of tests, filter out that input and throw a message: