/preflight

Readable assertions for testing in Go

Primary LanguageGoMIT LicenseMIT

preflight

Go Reference Conventional Commits License: BSD-3

Readable assertions for tests in Go

Installation

go get vincent.click/pkg/preflight

Getting Started

To write unit tests, use the preflight package to extend the standard testing package.

An Expectation provides a common interface for making assertions about values and behaviors.

Learn more in the docs.

func TestMethod(test *testing.T) {
    t := preflight.Unit(test)

    t.Expect(2 + 5).Equals(7)
}

Development

Please read the Contribution Guide before you proceed.

Copyright

Copyright 2021 Vincent Fiestada. This project is released under an MIT License.

Icon made by Freepik.