Help:Pickle/Glossary

Glossary for spec tests is a list of core terms an concepts used in spec tests.

Terms and concepts
After is a method to be run after, , and. It use a single queue so all functions will be run in correct sequence. An alias for this is teardown. AfterAll is a method similar to, except it is run once. It use a single queue so all functions will be run in correct sequence. It use the same queue as after so it will be run at the correct time in the first test. At later invocations it will not be run. Around is is not implemented as a separate method. All the functions, , and can take an additional function that does necessary cleanup. Assertions are tests that focuses on the actual code, and assertions about that code, and their falsy states. Before is a method to be run before, , and. It use a single queue so all functions will be run in correct sequence. An alias for this is setup. BeforeAll is a method similar to, except it is run once. It use a single queue so all functions will be run in correct sequence. It use the same queue as before so it will be run at the correct time in the first test. At later invocations it will not be run. Describe, see. Context, see. Examples are the levels in the describe, context, and it ladder. The name and level are a bit arbitrary as they all have the same function. The context is often left out, and only describe and it are used. Exceptions are error states reported from within the code. They will be catched by the test framework. Expectations are tests that focuses on the provided objects and examples, and their truthy states. It, see. Return is the outermost zero-level that encapsulates the test results and returns them in a formatted fashion.