startest

Package Version Hex Docs

🌠 A testing framework to help you shoot for the stars.

Installation

gleam add --dev startest
import startest.{describe, it}
import startest/expect
import startest/reporters/default as default_reporter

pub fn main() {
  let reporters = [default_reporter.new()]

  [
    describe("My Project", [
      describe("2 + 2", [
        it("equals 4", fn() {
          2 + 2
          |> expect.to_equal(4)
        }),
      ]),
    ]),
  ]
  |> startest.run_tests(reporters)
}

Targets

startest supports both targets: Erlang and JavaScript.

Search Document