Sign inSign up

moul/testman

By moul

•Updated over 4 years ago

Image
0

527

moul/testman repository overview

⁠testman

😎 go test wrapper for advanced testing workflows in Go

go.dev reference License GitHub release Docker Metrics Made by Manfred Touron

Go Release PR GolangCI codecov Go Report Card CodeFactor

⁠Usage

testman -h

USAGE
  testman <subcommand> [flags]

SUBCOMMANDS
  test  advanced go test workflows
  list  list available tests

testman test -h

USAGE
  testman test [flags] [packages]

EXAMPLES
   testman test ./...
   testman test -v ./...
   testman test -run ^TestUnstable -timeout=300s -retry=50 ./...
   testman test -run ^TestBroken -test.timeout=30s -retry=10 --continue-on-error ./...
   testman test -test.timeout=10s -test.v -test.count=2 -test.race

FLAGS
  -continue-on-error false  continue on error (but still fails at the end)
  -retry 0                  fail after N retries
  -run ^(Test|Example)      regex to filter out tests and examples
  -test.count 1             `go test -count=VAL`
  -test.race false          `go test -race`
  -test.timeout 0s          `go test -timeout=VAL`
  -test.v false             `go test -v`
  -timeout 0s               program max duration
  -v false                  verbose

testman list -h

USAGE
  testman list [packages]

EXAMPLES
   testman list ./...
   testman list -v ./...
   testman list -run ^TestStable ./...

FLAGS
  -run ^(Test|Example)  regex to filter out tests and examples
  -v false              verbose

⁠Install

⁠Using go
$ go get -u moul.io/testman
⁠Releases

See https://github.com/moul/testman/releases⁠

⁠Contribute

Contribute <3

I really welcome contributions. Your input is the most precious material. I'm well aware of that and I thank you in advance. Everyone is encouraged to look at what they can do on their own scale; no effort is too small.

Everything on contribution is sum up here: CONTRIBUTING.md⁠

⁠Contributors ✨

All Contributors

Thanks goes to these wonderful people (emoji key⁠):

This project follows the all-contributors⁠ specification. Contributions of any kind welcome!

⁠Stargazers over time

Stargazers over time

⁠License

© 2020-2021 Manfred Touron⁠

Licensed under the Apache License, Version 2.0⁠ (LICENSE-APACHE⁠) or the MIT license⁠ (LICENSE-MIT⁠), at your option. See the COPYRIGHT⁠ file for more details.

SPDX-License-Identifier: (Apache-2.0 OR MIT)

Tag summary

Content type

Image

Digest

Size

4.4 MB

Last updated

over 4 years ago

docker pull moul/testman