Help:Pickle/FAQ

This tries to answer some of the most common questions. If you have additional questions post them on the discussion page.

What is a spec test?
A spec test is a test written in a style similar to what has become common in [w:en:RSpec|RSpec]]. It focuses on the expected outcome of examples, not a failure to do so. It also focuses on tests that can be written before the code exist, not tests added after evrything is finished.

Where do I define spec tests?
Spec tests resides on subpages with the suffix. Usually only one page will hold tests for a single module, but all matching subpages will be included in a test run.

Where are the reports?
Reports from a static test run, that is those that will be automatically reevaluated on each run, is usually posted as part of the spec docpage. It is not posted on the talk page, that page should only be used for discussion purposes.

How to run tests during editing of the source module?
If the module is edited, and there is at least one properly named subpage, then there is an additional button under the editor (possibly console). Pushing this will run all the found tests, and output the report.

How to run tests during editing of the test module?
If the module is edited there is an additional button under the editor (possibly console). Pushing this will run the current tests, and output the report.