Skip to content
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

Build end before XML file written #93

Open
Swiip opened this issue May 31, 2016 · 3 comments
Open

Build end before XML file written #93

Swiip opened this issue May 31, 2016 · 3 comments

Comments

@Swiip
Copy link

Swiip commented May 31, 2016

Sorry but it's one of these "non reproductible", "not everytime" bug.

After some digging, it appears that in my karma run, this plugin stop with no logs exactly at the point of writing the XML file https://github.com/karma-runner/karma-junit-reporter/blob/master/index.js#L88. I put logs and try/catch approximatively everywhere in the plugin. Nothing seems wrong, the normal way of exiting works (onExit done callback stored to be called after writing the XML) but never finish as I never enter the write callback.

It only fails about 1 time on 2 and only on the integration server with Debian. It never failed on my laptop.

As a workaround, I tried a patch switching the write file for a synchronous one and it do the job.
https://github.com/Swiip/karma-junit-reporter/tree/write-sync

Any idea is welcome.

@ot-johnny-davila
Copy link

having the same issue. karma exits with no errors and no xml file generated

@mat1
Copy link

mat1 commented Jul 23, 2019

We have the same issue.

@krema
Copy link

krema commented Dec 9, 2020

Are there any updates? It is still happening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants