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
Error: Attempt to close tag classes when packages was the one open #384
Comments
@coderica @coreyfarrell |
@MayhemYDG I have reset @coderica this happened as a result of #382. For now I have not reverted the patch from git but I have reverted the I'll do what I can to help resolve this situation but I have nearly zero knowledge of cobertura. |
@coreyfarrell |
@MayhemYDG that's not what I'm seeing from |
Ah, you are correct, but I just figured out I'm still installing 2.2.5 because istanbul-api requires it. "istanbul-api": {
"version": "2.1.7",
"resolved": "https://registry.npmjs.org/istanbul-api/-/istanbul-api-2.1.7.tgz",
"integrity": "sha512-LYTOa2UrYFyJ/aSczZi/6lBykVMjCCvUmT64gOe+jPZFy4w6FYfPGqFT2IiQ2BxVHHDOvCD7qrIXb0EOh4uGWw==",
"dev": true,
"requires": {
"async": "^2.6.2",
"compare-versions": "^3.4.0",
"fileset": "^2.0.3",
"istanbul-lib-coverage": "^2.0.5",
"istanbul-lib-hook": "^2.0.7",
"istanbul-lib-instrument": "^3.3.0",
"istanbul-lib-report": "^2.0.8",
"istanbul-lib-source-maps": "^3.0.6",
"istanbul-reports": "^2.2.5",
"js-yaml": "^3.13.1",
"make-dir": "^2.1.0",
"minimatch": "^3.0.4",
"once": "^1.4.0"
}
}, |
Ahh sorry I missed that. I've just set |
@coreyfarrell yup, it's all good now, thank you very much. |
@MayhemYDG Sorry for the bug. I tested my change on my project but I guess I should have also tested on one that was already generating a properly formatted report. Is there any way you can reproduce this in a test app I can use to investigate the issue? |
It would be good to write some kind of snapshot test to make sure we can have the correct output produced in the cobertura reporter |
yes, it sounds like we need a couple, for both this scenario and the one in #66 |
@coderica I had to revert #382 via #385 to make sure the regression isn't accidentally released again. Moving forward I agree with @JaKXz, we need expanded testing with any changes to this report. I'm hoping you and @MayhemYDG can work together in some capacity to figure out a fix which serves both of your needs. |
Okay here's a reduced test case:
|
@coderica nothing to be sorry about, the problem was lack of test coverage on our part (ironically). None of the core Istanbul maintainers use cobertura, so we're not the best in the world at landing patches for it. Excited to work with you to re-land the patch 👍 |
Any chance at publishing istanbul-api@2.1.8 either with a revert or a fix? Starting to see many folks have failures with cobertura coverage reporting failures. |
I've republished |
I've just tried, and I still have the same issue. |
Going to need more information than this. What does |
And now it's working like a charm. My previous problem was because I was using Anyway, thanks a lot! |
@MayhemYDG @coderica PR #409 fails (throws) if run against |
My jest tests have started reporting this error today, as it's failing to generate a valid coverage report.
The report xml file ends with just this:
I believe this started happening following the most recent update.
The text was updated successfully, but these errors were encountered: