-
Notifications
You must be signed in to change notification settings - Fork 555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CLI for goconvey
v1.6.6 "loses" test results
#639
Comments
I should add that I'm running this under Ubuntu 20.04 (under WSL2). |
Thanks for taking the time to dig into this and file a solid issue! Definitely seems like a regression... skimming the diff between 1.6.4 and 1.6.6, I wonder if maybe https://github.com/smartystreets/goconvey/compare/v1.6.4..v1.6.6#diff-ae6722696d6e9ca440dc7ee0ce295e73df27151658a4dbdd422445a2ddf26636R53 is related? |
Hm... I'm not able to repro this with a clone of your repo and goconvey 1.6.6 (using the same version of the |
Nevermind! I, in fact, had the wrong binary version. Can definitely repro this. |
Just to be clear, things work correctly so long as there is no error being reported. I don't know enough about how I'm surprised more people haven't noticed this issue yet (I guess they all only write tests that pass ;-)). But I suspect people will start coming out of the woodwork as the latest changes start to percolate out. The fact that we can use the |
So I think this actually caused by https://github.com/smartystreets/goconvey/compare/v1.6.4..v1.6.6#diff-4f4038338de6c15311b73ae5c1f09ab0be69e49a9a0f1c0d5c5408a53cb5e682R6. I should have a fix for this (and spin a new version) today. |
Bah, pushed this the wrong way |
Fix #639: Disable pre-compilation for Go 1.16+
Ok, now fixed and included in v1.6.7 |
Excellent. Thanks for the quick turn around! |
I've created a repository to reproduce what I'm seeing. But I suspect anybody using the
v1.6.6
CLI is going to run into this (perhaps enough people simply haven't upgraded yet?). Although it is possible this is somehow specific to me and my setup.The repository can be found here and the
README
describes the issue but I'll repeat the essential details here:When you run
goconvey
v1.6.6
on the source in that repository, you'll see a bunch of lines that looklike this in the output:
But when you run v1.6.4, you don't see this:
This might seem like a superficial issue, but it is indicative of a deeper
problem which manifests itself more seriously in the web interface.
Specifically, the test failure in the code triggers some issue with parsing
output in the
goconvey
CLI tool which causes the all results of that test tobe complete masked (successes and failures).
The
README
in the repositoryincludes some figures as well to see what I mean. I should add that those figures
don't show accurate coverage information. But that is a separate issue that a)
already has been reported and b) has an easy work around. So don't worry about
coverage. The issue here is the non-reporting of results from any test where
an assertion fails.
My current workaround is to downgrade the CLI to
v1.6.4
(I can use eitherv1.6.4
orv1.6.6
in my
go.mod
file to importConvey
andSo
that doesn't have any impact, FYI).I really like the
goconvey
approach and I used to use it in a previous life when I was usingGo (under my @xogeny persona). So let me know if there is anything else I can do to
help fix this.
The text was updated successfully, but these errors were encountered: