Skip to content

Tryke

A Rust-based Python test runner with a Jest-style API.

ruff PyPI license python CI docs

Highlights

Getting started

Write a test.

from tryke import expect, test, describe


def add(a: int, b: int) -> int:
    return a + b


with describe("add"):

    @test("1 + 1")
    def basic():
        expect(1 + 1).to_equal(2)

Run your tests.

uvx tryke test

Installation

See the installation documentation.