Extension:Pickle/ja

The Pickle (or Behavior-driven development, BDD, previously Spec) extension is a extension for "spec" style testing for. Spec type testing is the same type of unit testing that is done in Rspec, Busted and other similar testing frameworks. It will provide a very thin integration to PHP and a few Lua modules and their localizations.

The actual code is still valid Lua, and all editing tools will work, except for missing definitions for intellisense in the various editors. An overview of the pickle extension from a user perspective can be found at.

The extension is called Pickle because you pick on your code.

Still note that gherkins are used for pickles, and that is also a language for "step" style testing, a kind of acceptance testing, so you might say these kinds of code snippets are pickles.

At some time in the future the extension might be extended with step style testing, and then the name would fit even better.

インストール
The code at Phabricator might lag behind the code at GitHub: jeblad/Pickle, the later is used during development and might be unstable. Spec depends on the extension. For recreating the Vagrant-based development environment, see.

使用法
If you have a module like "Module:HelloWorld", the ubiquitous and quite pesky example, it will be coded as something like

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

In the final version some of the lines in the beginning and end might be removed.