Help:Pickle

'This is a page describing a proposed solution. It is not finalized, but an on-going work.''' Sorry about that, to all those that want to do full spec-tests in Lua right away!''

Spec is a project to build a spec-style testing environment for projects using Lua-scripts to implement advanced templates.

Spec-style testing can be described as a variant of unit testing, or how to make the thing right.

Quick tour
help>Special:MyLanguage/Help:Spec/Quick tour|How to set up and use spec tests, run them interactively and understand the reports.

There are some specific terms concerning specs in general and its use on wikis in particular.

They have been defined in .

Advanced tools
Some advanced tools are available, for specific purposes.

They have been regrouped on these subjects:

The specs docpage can be given a special template that not only reports the results on the doc page but also categorizes the page if the tests fails.

Both test and source pages can run tests in the console. At the test page only a single test set will be run, but at the source page all subpages that is recognized as spec pages will be run.

Up for discussion


All modules that has specs will have a page status indicator for the current result of the test, both as part of the symbol (by coloring) and the message (as text).

All modules that has specs will have a tracking category for the current result of the test. It will follow the result as shown by the page status indicator.

All modules that has specs will add entries to the test status log for the current result of the test. It will follow the result as shown by the page status indicator.

It is possible to calculate reliability metrics for modules, and especially cyclomatic complexity is very interesting as this gives upper and lower bounds for the number of necessary tests.