Skip to main content

Smartest Documentation

A compact Ruby test runner built around explicit keyword fixtures.

require "smartest/autorun"

test("factorial") do
expect(1 * 2 * 3).to eq(6)
end

Write Tests

Define readable top-level tests and use expectation-style assertions.

Read the guide

Run Suites

Run a single file with autorun or execute a suite through the CLI.

Run tests

Use Fixtures

Request dependencies with required Ruby keyword arguments.

Learn fixtures