Comments (4)
Thank you for the detailed bug report and the minimal reproduction!
I ran this test using go test -race -count=1 -json .
and I noticed that sometimes the data race output has Test: ""
, and other times it has Test: "TestRace"
. This confirms the problem is an issue with test2json
. The data race output is being attributed to the package instead of the test.
It looks like there is an open issue about this problem: golang/go#58634
#298 added a workaround for a similar bug and seems like it almost fixes the problem. That change is included in gotestsum
v1.9.0. When I run the test case with v1.9.0
I see that sometimes the data race is attributed to the test, and sometimes it attributed the package, but very rarely it's neither. In those rare cases it must be missing from the go test
output entirely.
Upgrading to gotestsum
v1.9.0
should mostly work around the problem until it's fixed in the go toolchain.
from gotestsum.
That does not appear to help the issue on v1.9.0
from gotestsum.
Thank you for checking if it would though!
from gotestsum.
It is still an issue for me in v1.11.0
.
from gotestsum.
Related Issues (20)
- Subtest with parenthesis in name fail to rerun HOT 3
- Output total coverage over all tested packages HOT 1
- Re-running of failed tests does not handle multiple levels of subtests HOT 4
- feature request: global timeout HOT 1
- test result caching with `--raw-command <test-binary>`? HOT 1
- rerun-fails: run all failed tests in a package at once
- Release with rerun fixes? HOT 2
- Include timeout errors in junit reports. HOT 1
- passed reruns do not cache correctly? HOT 6
- dots-v2 is jittery HOT 3
- New formatter idea: worker-oriented view HOT 5
- dotsv2: Go test stderr clobbers the outpout HOT 1
- . 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
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.