poke

Package Version Hex Docs Tests

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

[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 for the rest of the toolkit.

Licence

Licensed under the Apache License, Version 2.0.