Module:ScribuntoUnit/config and Module:ScribuntoUnit/config/sandbox: Difference between pages
(Difference between pages)
>Vinifera7 (Created page with "-- 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 no...") |
>Vinifera7 (Create sandbox version of Module:ScribuntoUnit/config) |
||
Line 8: | Line 8: | ||
-- successIndicator: if the test passes | -- successIndicator: if the test passes | ||
-- failureIndicator: if the test fails | -- failureIndicator: if the test fails | ||
cfg.successIndicator = | cfg.successIndicator = '{{tick}}' | ||
cfg.failureIndicator = | cfg.failureIndicator = '{{cross}}' | ||
-- The names of the columns Name, Expected and Actual (the other three columns, | -- The names of the columns Name, Expected and Actual (the other three columns, | ||
-- in this order) | -- in this order) | ||
cfg.nameString = | cfg.nameString = 'Name' | ||
cfg.expectedString = | cfg.expectedString = 'Expected' | ||
cfg.actualString = | cfg.actualString = 'Actual' | ||
-- The string at the top used to indicate all tests passed. | -- The string at the top used to indicate all tests passed. | ||
cfg.successSummary = | cfg.successSummary = 'All tests passed.' | ||
-- The string at the top used to indicate one or more tests failed. $1 is | -- The string at the top used to indicate one or more tests failed. $1 is | ||
-- replaced by the number of tests that failed. This string is preprocessed by | -- replaced by the number of tests that failed. This string is preprocessed by | ||
-- frame.preprocess. | -- frame.preprocess. | ||
cfg.failureSummary = | cfg.failureSummary = '$1 {{PLURAL:$1|test|tests}} failed.' | ||
-- Format string for a short display of the tests in displayResultsAsShort. | -- Format string for a short display of the tests in displayResultsAsShort. | ||
-- This format string is passed directly to string.format. | -- This format string is passed directly to string.format. | ||
cfg.shortResultsFormat = | cfg.shortResultsFormat = 'success: %d, error: %d, skipped: %d' | ||
-- The CSS classes added to the output table | |||
cfg.tableClass = 'wikitable responsive-table' | |||
-- Category added to pages that fail one or more tests. Set to nil to disable | -- Category added to pages that fail one or more tests. Set to nil to disable |