Global Lua Modules/Testharness

This meta-module helps to create tests to ensure that a particular module functions properly.

Description
This module facilitates the use of Module:UnitTests. Rather than entering all that information for every single module, all one needs to do is something like:

-- Unit tests. Click talk page to run tests. local p ={ main={--function being tested options={nowiki=false}, --options -apply nowiki to test results tests = { preprocess_equals_many ={ -- Parameters     - Expected result {'Hello World!'  , 'Hello World!'}, {'1=Hello|2=World', 'Hello'}, },       },    }, } return p

Syntax
Run the tests using. Note, the module expects the tests to be stored in a subpage for testcases (e.g. Module:Bananas/testcases). It also expects the talkpage to be used to run the tests, e.g.(Module_Talk:Bananas/testcases).