Scampi
A small Ruby test framework forked from Bacon with built-in TAP version 14 output. Tests can live alongside your implementation code using co-located test blocks that only run when the file is executed directly or via the scampi CLI.
Requires Ruby >= 3.3 and ripgrep for test discovery.
Usage
Please see the project documentation for more details.
- Getting Started - Install Scampi and write your first test.
- Co-Located Tests - Place tests alongside implementation code with the test block.
- Assertions - The chainable .should DSL for equality, predicates, types, and custom matchers.
- Exceptions and Flow Control - Assert on raises, throws, and state changes.
- GitHub Actions - Run Scampi in CI.
See Also
- TAP (Test Anything Protocol)
- Bacon - The original project Scampi was forked from.
License
Released under the MIT License. See COPYING for details.