Extension:Pickle


 * This page is a placeholder for now (7 April 2016), and will probably stay so until the grant process is finished.

The Behavior-driven development (BDD) extension is a planned extension for Rspec/Busted style testing. It would be an extension to provide a few Lua modules and their localizations.

Intended use
If you have a module like «Module:HelloWorld», the ubiquitous and quite pesky example, coded as something like

Then on a test page you would test this like like the following

Requirements
Spec depends on the Scribunto extension.

API
There are two different APIs in this extension; one "programmers API" for the actual spec, and one for the Test Anything Protocol.

Spec

 * Links to documentation of the test calls. Should probably be subpages, perhaps by LuaDoc.

TAP

 * This is about Test Anything Protocol and how it is possible to access it, especially how the tests can be run by an external client.