Main public logs
Jump to navigation
Jump to search
Combined display of all available logs of Test Wiki. You can narrow down the view by selecting a log type, the username (case-sensitive), or the affected page (also case-sensitive).
- 15:23, 12 September 2025 Peterxy12 talk contribs created page Module:UnitTests/doc (Created page with "UnitTests provides a unit test facility that can be used by other scripts using '''require'''. Following is an example: <syntaxhighlight lang="lua"> -- Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_hello() self:preprocess_equals('{{#invoke:Bananas| hello}}', 'Hello World!') end return p </syntaxhighlight> This would be executed with <code><nowiki>{{#invoke: Bananas/testcases | run_tests}}</n...")