JsTestDriver IntelliJ plugin bundles patched version of JsTestDriver-1.3.5.
Why do I need this patched version?
The patched version of JsTestDriver.jar v1.3.5 contains:
- Partial fix for http://code.google.com/p/js-test-driver/issues/detail?id=85. Now you can use JavaScript files that are encoded in UTF-8. Thanks to biede0.
- You can use console.log instead of jstestdriver.console.log.
- Fix for https://code.google.com/p/js-test-driver/issues/detail?id=409 (available in WebStorm 9 or later). Thanks to Kyaw Tun.
What should I do to start using the patched version?
Just install JsTestDriver IntelliJ plugin in your IDE, if it wasn't installed before. If you'd like to use it in console, download JsTestDriver-1.3.5-patched.jar.
For developers
https://code.google.com/r/sergeysimonchik-patched-js-test-driver/
IntelliJ plugin uses a repackaged version of JsTestDriver.jar to be able to use its own versions of gson and guava libraries without conflicts with the other versions of these libraries bundled into JsTestDriver.jar.
Repackaging is implemented using jarjar utility:
Code Block | ||||
---|---|---|---|---|
| ||||
<project name="JsTestDriver" default="jar"> ... <target name="jar.repackaged" depends="jar" description="repackages JsTestDriver.jar to avoid conflicts with embedded gson and google-collect"> <taskdef name="jarjar" classname="com.tonicsystems.jarjar.JarJarTask" classpath="lib/jarjar-1.4.jar"/> <jarjar jarfile="${bin.dir}/${ant.project.name}-with-hidden-deps.jar"> <zipfileset src="${bin.dir}/${ant.project.name}.jar"/> <rule pattern="com.google.gson.*" result="com.google.jstestdriver.internal.gson.$@1"/> <rule pattern="com.google.gson.**.*" result="com.google.jstestdriver.internal.gson.@1.$@2"/> <rule pattern="com.google.common.*" result="com.google.jstestdriver.internal.common.$@1"/> <rule pattern="com.google.common.**.*" result="com.google.jstestdriver.internal.common.@1.$@2"/> <rule pattern="com.google.inject.internal.*" result="com.google.inject.internal.$@1"/> <rule pattern="com.google.inject.internal.**.*" result="com.google.inject.internal.@1.$@2"/> </jarjar> </target> </project> |
Feedback
If you've found a bug, a glitch or anything that doesn't work well, please file an issue in the WebStorm / IntelliJ Web project issue tracker (select "Unit Tests" subsystem).