Package documentation
poke
1.0.0poke
Poke your code to find bugs!
Assertions, properties, regressions, snapshots, fixtures, state models and process tests for 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 Poke as a development dependency:
pooka add poke --dev
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 for the rest of the toolkit.
Licence
Licensed under the Apache License, Version 2.0.