Motoko specs that are easy to read and learn, allowing you to ship Motoko code with confidence.
This package has been put on halt, we recommend the usage of MOPS and it's feature of "test". More info: https://mops.one/test
- Underneath the hood, it's using "mo-test" command of mo-dev (npm package) of Ryan Vandersmith
- Empowered by Motoko Matchers of Christoph Hegemann
- Empowered by ActorSpec of Joachim Breitner
- Based on the example Motoko Unit Tests of Kyle Peacock
- Based on the example of packages testing in Motoko Base
- Heavily inspired by other Spec frameworks, mostly RSpec, but also Jest.
In this repo, you will find an example of it's usage on the "example" folder. (WIP)
- Fast and powerful spec loader and runner (credit to mo-test)
- "Describe", "context", "before", "it" syntax, with grouping and sub-grouping
- Capable of running Canister / Actor specs, using the interpreter
There are some concepts and architectural choices that is important to understand for any project to apply this library succesfuly.
MoSpec, in your project will be composed of:
- Spec Config
- Spec Support
- Specs