Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0

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:

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
xml
xml
<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).