Code Monkey home page Code Monkey logo

Comments (6)

dnephin avatar dnephin commented on June 12, 2024

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.

lovefromindia avatar lovefromindia commented on June 12, 2024

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.

dnephin avatar dnephin commented on June 12, 2024

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.

lovefromindia avatar lovefromindia commented on June 12, 2024

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.

dnephin avatar dnephin commented on June 12, 2024

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.

lovefromindia avatar lovefromindia commented on June 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.