Comments (6)
Hello! Thank you for the bug report.
The only thing I notice from the command you shared is that ./...
appears twice. Once in as the value for --packages
, and again after cover.out
. It is correct to pass that value to --packages
, but I think you need to remove the second one after cover.out
. I'm not sure if that is causing the problem or if it's something else.
The -p
flag should be ok, I haven't seen problems with that before.
Can you share some of the test output? How many tests are failing, and are any failing with a panic?
from gotestsum.
Thanks for the response.
We already removed the twice occuring packages and then also the rerun didn't worked
For panic part, I ensure no panic occured and assertions failed for the test case but I expected rerun for the test cases that failed. That didn't occured
Also, for argument -packages do we need to list all packages instead of recursive package path "./..." ? With -count=2 all test cases ran twice as expected but not with only rerun-fails
I just wanted to know if I am doing anything wrong with command that my script generates to run at build environment?
gotestsum --rerun-fails --packages="./..." --format testname --junitfile ../../jsonreport.xml -- -coverprofile=../../cover.out -p 7 -timeout 0
from gotestsum.
Can you try with adding the --debug
flag to gotestsum
? That will print out the go test
commands that are run each time. That should help us understand why there is no rerun.
If you can share some output of the test run that may help us debug, but from what you've shared I don't see anything that would prevent the re-runs.
from gotestsum.
Thanks for the quick response, dnephin
I thinks issue was with the argument of packages="./...". Instead we list out all packages in double quotes e.g. "a b c" and now reruns works as expected.
Now the coverage report generated is of last run. Is there any argument that gotestum give so that i can get combined coverage report of all runs?
from gotestsum.
Ah, yes there is a way to make that work. See #274 (comment), and this demo repo: https://github.com/neiser/gotestsum-rerun-dependent-subtests
from gotestsum.
Thanks for sharing. I am closing this issue and also apologise that i bothered you with too much questions and so kind of you to answer them.
from gotestsum.
Related Issues (20)
- . HOT 1
- Support running tests using RR HOT 3
- Support(): When I use gotestsum, some unexpected message output HOT 1
- watcher: warning on invalid symlinks HOT 2
- error when go install v1.11.0 HOT 4
- gotestsum slow in dind container HOT 2
- junitxml: include full output in system-out field HOT 7
- Duplicated `go test` arguments on rerun, causing `package is not in std` HOT 1
- `--junitfile` XML report contains all test runs if using `--rerun-fails` HOT 2
- Support Markdown formatted output. HOT 3
- Strange output with testname format and coverprofile HOT 2
- Order of packages when using pkgname HOT 2
- Support for Fuzzy Testing using testing.F HOT 1
- `--rerun-fails` doesn't work when `--packages` specifies a source file HOT 1
- why does the testname format does not support icons? HOT 1
- Test cases passed but gotestsum print out Failed in summary HOT 7
- Warn on foo.go~ when using --watch HOT 2
- gotestsum support to run multiple tests using fully qualified name of tests HOT 3
- Latest dependabot update raises module requirement to Go 1.19 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.