Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/teleivo/assertive
Lightweight assertions for Go tests
https://github.com/teleivo/assertive
assertion assertion-library assertions go golang gotest testing
Last synced: about 8 hours ago
JSON representation
Lightweight assertions for Go tests
- Host: GitHub
- URL: https://github.com/teleivo/assertive
- Owner: teleivo
- License: gpl-3.0
- Created: 2024-07-13T14:14:25.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2024-08-07T04:46:46.000Z (3 months ago)
- Last Synced: 2024-08-07T08:16:27.278Z (3 months ago)
- Topics: assertion, assertion-library, assertions, go, golang, gotest, testing
- Language: Go
- Homepage:
- Size: 27.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Assertive
[![Go Reference](https://pkg.go.dev/badge/github.com/teleivo/assertive.svg)](https://pkg.go.dev/github.com/teleivo/assertive)
Assertive is an assertion library for writing tests in Go.
It only has one dependency on https://github.com/google/go-cmp.
## Install
```sh
go get -u github.com/teleivo/assertive
```## Disclaimer
I wrote this library for my personal projects. It is thus tailored to my style of writing tests. I
do try to stick to https://go.dev/wiki/CodeReviewComments#useful-test-failures. Feel free to use
it! That being said, my intention is not to adjust it to someone elses liking.