Simple testing utilities for Golang.
Status: In-Development
package mypackage
import "testing"
import "kilobit.ca/go/tested/assert"
// Sanity Check
//
func TestMyPackageTest(t *testing.T) {
assert.Expect(t, true, true)
}
Wait... another testing library?
Yes! Another testing library. Intended to be small, simple and expand to satisfy new requirements as they emerge. Hopefully it, or something in the See Other section will be useful for your project.
Right now, tested couldn't be simpler while being any use at all.
Current Features:
- A simple Assert library to reduce test writing effort.
- Implemented the Expect assertion.
- Added simple error check assertion, assert.Ok.
- Pass arbitrary extra arguments that will be stringified and printed if the assertion fails.
Future Features:
- More assert functions.
- Customize and direct output.
- Whatever seems useful while writing tests.
There are lots of great testing libraries that may better suite your needs.
$ go get 'kilobit.ca/go/tested'
$ cd tested
$ go test -v
$ go build
Contributions and collaborations are welcome!
Please submit a pull request with any bug fixes or feature requests that you have. All submissions imply consent to use / distribute under the terms of the LICENSE.
Submit tickets through github.
See LICENSE.
--
Created: Nov 13, 2019
By: Christian Saunders cps@kilobit.ca
Copyright 2019 Kilobit Labs Inc.