Daniel Nephin
Daniel Nephin
This would be a great addition. If anyone wants to implement the format I can review and get it merged.
I agree with @vdemeester
Another option, fork `gocheck` and have it emit the `test2json` output, change: 1. https://pkg.go.dev/gopkg.in/check.v1#C.Log and the other underlying log and write calls to use `t.Log` 2. [suiteRunner.run](https://github.com/go-check/check/blob/v1/check.go#L611-L641) to use `t.Run`...
Thanks for suggesting this! Using `--jsonfile` and `--post-run-command` to do this is a really interesting approach. It should be possible without a custom script: ```sh gotestsum \ --jsonfile tmp.json.log \...
If I understand correctly, I think fixing the bug I mentioned above (writing the jsonfile before calling post-run-command) should fix the issue with errors. The post-run-command is run even on...
> Being able to get top n slowest tests would be a cherry on top `gotestsum tool slowest` should be able to do that for you. It reads the same...
With #306 adding the new `--json-timing-events` flag, and #318 adding the `gotestsum too slowest --num` flag I think it should be possible to do what you want. The full command...
Ya, I think it's worth still considering a new flag. I'll re-open this issue to see if others are interested. I'm not sure how common it is to want to...
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...
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...