-
Notifications
You must be signed in to change notification settings - Fork 41
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
IOException when test task is excluded #81
Comments
Gradle stacktrace is:
|
Hi Igor, Thanks very much for the detail and fix - please could you confirm that this is only a problem on Windows, and then only with recent versions of Gradle? Cheers, |
Hi Stu, I've just tried to reproduce on Ubuntu the same way I did on Win and couldn't, so you're right - it seems to be Windows only issue. I can do more tests if helps. From what I now see, it's might as well be gradle issue on Windows. |
That's good to hear. Please would it be possible to check against 4.8? I can then go through the diffs and try to track down the upstream change. Cheers, |
Hmmm, I was wrong in assuming it works on 4.7 - just tried and got the same IOException. I've tried running it with gradle 3.5 and it's still behaving the same way (haven't changed plugin version though - all tests done with 2.4.0). It is odd the issue only appears on Windows, but seems it was there for quite a long time. |
Ah. In which case, please could you try using 2.3.0? I think the PR you submitted reverts a recent change. |
Indeed, my PR reverts change of testScoverage outputs to the way it was in 2.3.0. Just verified once again - 2.3.0 and snapshot version with the fix work fine, 2.4.0 fails with IOException. If this change to outputs is crucial, I'm happy to help with other solution. But it would be really good to fix this cause it blocks some of our builds atm. |
Please could you test the 2.5.0 release, which changes the approach for determining if the test task is up-to-date? Thanks, |
It works. Thanks a lot for the fix. Igor |
On gradle 4.8.1+ if I do the below on my build, so that test are not ran twice
test { onlyIf { ! gradle.taskGraph.hasTask(testScoverage) } }
it starts to fail whenever scoverage tasks are part of task graph:
The text was updated successfully, but these errors were encountered: