Help:Pickle/Glossary/de

Glossary for pickle tests is a list of core terms and concepts, both for spec and step style tests. Terms are borrowed from the ITIL framework, ISTQB framework, RSpec framework, and predicate logic. The different frameworks are linked as necessary. Try to keep close to the definitions, but adapt to this testing environment.

Terms and concepts

 * After
 * Also known as teardown.
 * Marks functions to be run after describe, context, and it. It uses a single queue so all functions will be run in the correct sequence.


 * AfterAll
 * Marks functions similar to after, except it is run once. Strictly speaking this function is not necessary as code can be added inline. It use a single queue so all functions will be run in the 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
 * An alternate to after that is only run if the test throws an exception. If an exception is thrown, and there is an around function registered, then no after function will be run.


 * Assertion
 * Test that focuses on the actual code, and assertions about that code, and their falsy conditions. In depth article on Assertion.


 * Before
 * An alias for this is setup.
 * Marks functions to be run before describe, context, and it. It use a single queue so all functions will be run in the correct sequence.


 * BeforeAll
 * Marks functions similar to before, except it is run once. Strictly speaking this function is not necessary as code can be added inline. It use a single queue so all functions will be run in the 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.


 * Carp
 * A spy that adds a message to stack without exiting the test, printing the caller's name and its arguments. Partly emulating the  function from perl.


 * Cluck
 * A spy like carp, but also prints a stack trace starting one level up. Partly emulating the  function from perl.


 * logische Bedingung
 * Ein logischer Ausdruck, der entweder als "wahr" oder "falsch" bewertet werden kann, z.B. A>B.


 * Confess
 * A spy like croak, but also prints a stack trace starting one level up. Partly emulating the  function from perl.


 * Context
 * Marks functions used as examples, but also a function  itself. See example for details.


 * Überdeckungsgrad
 * Der Grad, ausgedrückt in Prozent, zu dem ein spezifiziertes Überdeckungselement (z.B. Zweig) durch eine Testsuite ausgeführt wurde.


 * bestanden-Kriterien
 * Regeln, die dazu dienen, für ein Testobjekt entscheiden zu können, ob ein Test bestanden oder nicht bestanden wurde. In Specs/Pickle ist es nur einfache bestanden/nicht bestanden verwendet.


 * Croak
 * A spy like carp, but also stops the running test (the user provided anonymous function). Partly emulating the function from perl. Because it throws an exception it will always trigger a stack trace.


 * Describe
 * Marks functions used as examples, but also a function  itself. See example for details.


 * Design
 * Also known as test design
 * The process of transforming general test objectives into tangible test conditions and test cases.
 * The document that describes the implementation details of the test, or results of, the system or in our case the module. The document is a subsection on the  subpage for the spec page.


 * Developer
 * A person that write code. See tester


 * Documentation
 * Also known as test documentation
 * The document that describes plans of, or results of, the system or in our case the module. The document is the  subpage for the spec page.


 * Examples
 * The levels in the describe, context, and it ladder. The name and level are a bit arbitrary as they all have nearly the same function. The context is often left out, and only describe and it are used.


 * Exceptions
 * Error states reported from within the code. They will be caught by the test framework. In depth article on Exception handling.


 * Expectations
 * Tests that focus on the provided objects and examples, and their truthy states.


 * Fehlschlag
 * Ein Test schlägt fehl, wenn das aktuelle Ergebnis nicht mit dem vorausgesagten Ergebnis übereinstimmt.


 * Feature
 * An attribute of a component or system specified or implied by requirements documentation (for example reliability, usability or design constraints).


 * Fixture
 * The function defining the test is the test fixture, and a frame without a test fixture it will be skipped.


 * Good
 * See pass for details.


 * Testrahmen
 * Eine Testumgebung, die aus den für die Testausführung benötigten Treibern und Platzhaltern besteht.


 * It
 * Marks functions used as examples, but also a function  itself. See example for details.


 * Mock
 * A simulated object that act as a strictly controlled replacement for a real object. A mock is a type of test double. In depth article on Mock object.


 * Overfitting
 * Happens when there are too tight couplings between the test and source code. Usually happen when tests use spies to verify internal data structures in source code.


 * Bestanden
 * Ein Test wird als bestanden bezeichnet, wenn das tatsächliche mit dem vorausgesagten Ergebnis übereinstimmt.


 * Pending
 * A frame marked with skip or todo will be in a pending final state. This state is an override of pass ("ok") and fail ("not ok") and makes it possible to code and test with less noise.


 * Return
 * The outermost zero-level that encapsulates the test results and returns them in a formatted fashion.


 * Skip
 * The system (or optionally the author) can mark a test as skipped, either in the description or in the code. Further processing within the frame will then be terminated and the current state used.


 * Spec
 * A type of testing to make sure we build the thing right, usually by writing some kind of unit tests, but can also be more high level.


 * Spies
 * Functions that can be registered on other functions, or injected into code to report or alter internal states. Spying on public calls made before the module is available to the testing regime will not be possible.


 * Step
 * A type of testing to make sure we build the right thing, usually by writing some kind of acceptance tests, which is at the integration level.


 * Stub
 * Simulated code, usually a function in this context, that acts as a strictly controlled replacement for some real code. A stub is a type of test double. In depth article on Test stub.


 * Subject
 * The object under test. It can be explicitly set or set as part of the examples. It is passed on to expect.


 * Test
 * An activity to verify proper operation of a system, given that it is executed under specific conditions, and with observed and recorded results.


 * Testfall
 * Umfasst folgende Angaben: die für die Ausführung notwendigen Vorbedingungen, die Menge der Eingabewerte (ein Eingabewert je Parameter des Testobjekts), die Menge der vorausgesagten Ergebnisse, sowie die erwarteten Nachbedingungen. Testfälle werden entwickelt im Hinblick auf ein bestimmtes Ziel bzw. auf eine Testbedingung, wie z.B. einen bestimmten Programmpfad auszuführen oder die Übereinstimmung mit spezifischen Anforderungen zu prüfen (wie Eingaben an das Testobjekt zu übergeben und Sollwerte abzulesen sind). Can also include documentation for how to run the test case.


 * Test doubles
 * Code replacing pieces of code that are not tested, and should return only known values. In depth article on Test double.


 * Testelement
 * Das einzelne Element, das getestet wird. Gewöhnlich existieren ein Testobjekt und viele Testelemente.


 * Tester
 * Eine sachkundige Benutzer, die am Testen einer Komponente oder eines Systems beteiligt ist. See developer


 * Todo
 * The user (or optionally the system) can mark a test as todo, either in the description or in the code. Further processing within the frame will continue, but the final state set to pending anyhow.