Skip to content

The format of a .dyalogtest file

Michael Baas edited this page May 25, 2022 · 5 revisions

A .dyalogtest file is a text file that contains declarations describing a test suite (a collection of tests, optionally prepared by executing setup code and optionally completed by running teardown fn(s)). The format is {item}:{value}[,{options}] (casing is irrelevant), options depend on the item. Items of a .dyalogtest file are:

  • DyalogTest (optional) - numeric, gives the minimum version of DTest that the suite requires
  • ID (optional) - charvec
  • Description (optional) - charvec, might be interesting for others and is printed on screen when test is run
  • SuccessValue (optional) - charvec, defines the return value of a successful test. (more)
  • AlertIfCoverageBelow (optional) - numeric, defines a threshold that will be checked against when running Coverage tests ...]]]]if you want to make sure that
  • CodeCoverage_Subject (optional)
  • CodeCoverage_Ignore (optional)
  • Setup (optional)
  • Test (mandatory)
  • Teardown (optional)

Additionally, .dyalogtest files can be commented using APL-Comments (with the "lamp" symbol )