Comments (3)
Thank you for your reply. It turns out I am familiar with the first option. Gqlgen for graphql uses it. I'll probably go with the second option since there is a Makefile to install other dependencies.
from gotestsum.
Interesting question!
One option is something like this: https://play-with-go.dev/tools-as-dependencies_go119_en/. You can include it as an import in a project, but I guess that requires that someone run using go run gotest.tools/gotestsum
, instead of simply gotestsum
.
If you use a Makefile or some other tool for project tasks, you could include go install gotest.tools/gotestsum@latest
to get it installed.
A third option, which is pretty unconventional, is something like #151, where you run go run ./test
instead of go test
, and that runs the tests with gotestsum
.
from gotestsum.
I learned about another option which should work like "auto install". You can run go tools like this without then being in the go.mod
file:
go run gotest.tools/gotestsum@latest [gotestsum flags]
If the module already exists in $GOPATH/pkg/mod/...
it will run it. It the source isn't available locally it will download the source, compile, and run.
gotestsum
has very few dependencies, so it doesn't take long to download and compile on the fly like this.
from gotestsum.
Related Issues (20)
- Add flag to always return success status even when there are failed tests HOT 3
- Docker image with gotestsum HOT 4
- Format option proposal: `pkgname-coverage-graph` HOT 5
- Feat: add optional configurable tests summary HOT 9
- Add support for build tags in gotestsum HOT 1
- Allow timeout parameter to be passed to go test HOT 2
- race detected output inconsistently reported HOT 5
- Does gotestsum support adding properties to test cases in the junit xml result file ? HOT 9
- Add `json` format support (not via --jsonfile) HOT 6
- Add github-actions and buildkite formats HOT 3
- Add support Ginkgo testing framework HOT 1
- Coverage not reported HOT 1
- The release for windows/arm64 was skipped HOT 1
- testname format still prints failure output with --hide-summary=output HOT 2
- Issue with verbose output HOT 3
- gotestsum stops on first package that has failing test HOT 1
- Successful benchmark run is marked as failed HOT 1
- Wait before retrying tests via --rerun-failed flag HOT 1
- generate coverage reports HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotestsum.