timurstrekalov / saga

Better code coverage tool for JavaScript.
http://timurstrekalov.github.com/saga/
Other
87 stars 25 forks source link

URISyntaxException when running coverage tests #103

Open jkburges opened 11 years ago

jkburges commented 11 years ago

mvn verify on https://github.com/aodn/aodn-portal/tree/js_code_coverage results in the following error:

15:48:34.363 [main] INFO  com.github.timurstrekalov.saga.core.DefaultCoverageGenerator - Using up to 1 threads
15:48:34.363 [main] INFO  com.github.timurstrekalov.saga.core.DefaultCoverageGenerator - Output strategy set to TOTAL
15:48:34.393 [main] INFO  com.github.timurstrekalov.saga.core.DefaultCoverageGenerator - Using the following no-instrument patterns:
    .+__from_\d+_\d+_to_\d+_\d+$
    .*/spec/.*
    .+#\d+\(eval\)\(\d+\)
    .+JavaScriptStringJob
15:48:34.795 [pool-2-thread-1] INFO  com.github.timurstrekalov.saga.core.DefaultCoverageGenerator - Running test at http://localhost:59529
15:48:36.618 [pool-2-thread-1] ERROR com.github.timurstrekalov.saga.core.ScriptInstrumenter - Exception caught while instrumenting code
java.lang.IllegalArgumentException: null
    at java.net.URI.create(URI.java:841) ~[na:1.6.0_43]
    at com.github.timurstrekalov.saga.core.ScriptInstrumenter.preProcess(ScriptInstrumenter.java:130) ~[saga-core-1.4.0.jar:na]
    at com.gargoylesoftware.htmlunit.javascript.HtmlUnitContextFactory.preProcess(HtmlUnitContextFactory.java:205) [htmlunit-2.11.jar:2.11]

snip

Caused by: java.net.URISyntaxException: Illegal character in scheme name at index 6: script in http://localhost:59529/ from (-1, -1) to (-1, -1)
    at java.net.URI$Parser.fail(URI.java:2810) ~[na:1.6.0_43]
    at java.net.URI$Parser.checkChars(URI.java:2983) ~[na:1.6.0_43]
jkburges commented 11 years ago

This may be a duplicate of #99 but there's not enough of the stack trace there to be sure