Package documentation

poke

1.0.0

By Peregrine Finch

poke

Package Version Hex Docs Tests

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 Poke as a development dependency:

sh
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.