Current section
Files
Jump to
Current section
Files
README.md
# poke
[](https://hex.pm/packages/poke)
[](https://poke.hexdocs.pm/)
[](https://github.com/peregrinefinch/poke/actions/workflows/test.yml)
Poke your code to find bugs!
Assertions, properties, regressions, snapshots, fixtures, state models and
process tests for Pooka.
```pooka
import poke/should
test "a small sum" {
should.equal(1 + 1, 2)
Ok(Some(42)) |> should.be_ok() |> should.be_some() |> should.equal(42)
}
```
Add this draft as a development dependency:
```toml
[dev-dependencies]
poke = { path = "../poke" }
```
Run `pooka test`. Review snapshots with `pooka run -m poke review`.
Snapshots live in `test/snapshots`; `poke/pretty` formats values as plain text.
Read the [testing guide](docs/guide.md) for the rest of the toolkit.
## Licence
Licensed under the [Apache License, Version 2.0](LICENSE).