Skip to content
This repository has been archived by the owner on Oct 10, 2021. It is now read-only.

Export Istanbul coverage #174

Open
vnen opened this issue Mar 5, 2015 · 5 comments
Open

Export Istanbul coverage #174

vnen opened this issue Mar 5, 2015 · 5 comments

Comments

@vnen
Copy link

vnen commented Mar 5, 2015

I know it runs Istanbul on the browser, but it's possible to export such report? If this was automated would be awesome.

My wish is to test both on node and on the browser, then merge the reports to get the full coverage, as there are things that depend on the environment.

@rase-
Copy link
Collaborator

rase- commented Mar 5, 2015

@vnen you can export a zip with all the istanbul data from from /coverage/download, for example

http://localhost:58700/__zuul/coverage/download

Maybe that's what you need?

@vnen
Copy link
Author

vnen commented Mar 5, 2015

@rase- that's good, I didn't know it was possible. I'm still looking for a way to automate that, though.

@rase-
Copy link
Collaborator

rase- commented Mar 5, 2015

I don't see combining the reports as a part of zuul, really. You probably would want to curl the zip from that url and use a separate module to combine the istanbul reports.

Or what were you referring to with automation?

@vnen
Copy link
Author

vnen commented Mar 5, 2015

@rase- It belongs to Istanbul the chore of combining the reports (it already can do that).

The automation I refer is to run the coverage tool without having to actually open a browser. I thought about PhantomJS, but when I run with the --phantom flag it doesn't produce any output (is that a bug?).

If I just curl the zip, the coverage is blank because it didn't run any test.

@rase-
Copy link
Collaborator

rase- commented Mar 30, 2015

Ah, I see. I'll have to investigate what happens with phantom a bit.

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

No branches or pull requests

2 participants