defunctzombie / zuul

[UNMAINTAINED] multi-framework javascript browser testing
958 stars 86 forks source link

Export Istanbul coverage #174

Open vnen opened 9 years ago

vnen commented 9 years ago

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- commented 9 years ago

@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 commented 9 years ago

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

rase- commented 9 years ago

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 commented 9 years ago

@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- commented 9 years ago

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