Module:UnitTests/config
Appearance
Configuration for Module:UnitTests.
-- The cfg table, created by this module, contains all localisable strings and
-- configuration, to make it easier to port this module to another wiki.
local cfg = {} -- Do not edit this line.
-- The successIndicator and failureIndicator are in the first column of the
-- wikitable produced as output and indicate whether the test passed. These two
-- strings are preprocessed by frame.preprocess.
-- successIndicator: if the test passes
-- failureIndicator: if the test fails
cfg.successIndicator = "{{tick}}"
cfg.failureIndicator = "{{cross}}"
-- The names of the columns Test, Expected, Actual, Live, Sandbox, and Differs At
cfg.testString = "Test"
cfg.expectedString = "Expected"
cfg.actualString = "Actual"
cfg.liveString = "Live"
cfg.sandboxString = "Sandbox"
cfg.differsString = "Differs at"
-- The string at the top used to indicate no tests were ran.
cfg.noTestsRunSummary = '<b>No tests were run.</b>'
-- The string at the top used to indicate all tests passed. $1 is
-- replaced by the number of tests run. This string is preprocessed
-- by frame.preprocess.
cfg.successSummary = '<b style="color: #008000;">All $1 {{PLURAL:$1|test|tests}} passed.</b>'
cfg.liveSuccessSummary = '<b style="color: #008000;">All $1 live {{PLURAL:$1|test|tests}} passed.</b>'
cfg.sandboxSuccessSummary = '<b style="color: #008000;">All $1 sandbox {{PLURAL:$1|test|tests}} passed.</b>'
-- The string at the top used to indicate one or more tests failed. $1 is
-- replaced by the number of tests run. $2 is replaced by the number of tests
-- that failed. This string is preprocessed by frame.preprocess.
cfg.failureSummary = '<b style="color: #800000;">$2 of $1 {{PLURAL:$1|test|tests}} failed.</b>'
cfg.liveFailureSummary = '<b style="color: #800000;">$2 of $1 live {{PLURAL:$1|test|tests}} failed.</b>'
cfg.sandboxFailureSummary = '<b style="color: #800000;">$2 of $1 sandbox {{PLURAL:$1|test|tests}} failed.</b>'
-- Category added to pages that fail one or more tests.
cfg.failureCategory = "[[Category:Failed Lua testcases using Module:UnitTests]]"
-- Finally, return the configuration table.
return cfg -- Do not edit this line.