tntim96 / JSCover

JSCover is a JavaScript Code Coverage Tool that measures line, branch and function coverage
GNU General Public License v2.0
399 stars 84 forks source link

Which is the best way to test the deployment site? #303

Closed green0701 closed 2 years ago

green0701 commented 3 years ago

I deploy my test site to IIS (my js need deploy). So i use like 192.168.8.111:80/index.html to test my js. (I use Qunit) So which is the best way to use JSCover collect report?

And when I execute "java -jar JSCover-all.jar -fs ./test ./testJSCover" Some error give me. test.zip

image

tntim96 commented 3 years ago

Which is the best way to test the deployment site?

See this example: https://github.com/tntim96/JSCover/tree/master/examples/localStorage-file-system

I'll have to investigate what specifically is causing that error.

AngelaWanChina2021 commented 3 years ago

please let me know how to fix the issue I meet the same issues

tntim96 commented 3 years ago

@AngelaWanChina2021 or @green0701 can you isolate the bit of JS code that causes this error?

angelikaYang commented 2 years ago

I have the same issue, any update here? how to fix this? I start the jscover with fs

tntim96 commented 2 years ago

I've released it in the 2.0.15 SNAPSHOT if you'd like to test.

<repositories>
    <repository>
        <id>sonatype-nexus-snapshots</id>
        <name>Sonatype Nexus Snapshots</name>
        <url>https://oss.sonatype.org/content/repositories/snapshots</url>
        <snapshots>
            <enabled>true</enabled>
        </snapshots>
    </repository>
</repositories>

Or build the latest JAR yourself or download from here.

Let me know if that fixes your issue and I'll build a release.

green0701 commented 2 years ago

It looks great.

tntim96 commented 2 years ago

Fixed in release v2.0.15