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:

Syntax
Create a module with code similar to this:

Explanation:
 * hello = the name of the function that will be run
 * options = these are options that can be used when running the tests
 * nowiki = when this is true, the result will be wikitext, otherwise (if false) it will render the content of the page, e.g. Help:Lua -> Help:Lua.
 * tests = this is a table that contains tests that will be run, the names of the tests are based on Module:UnitTests, see Wikipedia:Module:UnitTests for more information.
 * Each test must contain a table. This table contains one key with the parameters and one with the results, and follows the same formatting in the table Global_Lua_Modules/Testharness.

In the example above the testharness will run the test "preprocess_equals_many" which will create the following (e.g. if it is run using Module:SharedTest):

It then lets Module:UnitTests run the tests and present the results when the wikitext below is added to a page.

Run the tests using: 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 (and contain the invoke above), e.g.(Module_Talk:Bananas/testcases). This can be overwritten by using the parameters below:

Tests that it runs
All tests available in Module:UnitTests shown in the table below :