JSTestDriver Plugin

30.08.2016
131 221
Allows running, debugging JavaScript unit tests and measure test coverage.

Download plugin

Version

Update date

Recent change notes

Bundled with patched JsTestDriver-1.3.5
23.05.2012
Hi thombrando,

Thanks for the feedback.

Unfortunately we couldn't reproduce the bug.
Please reinstall the plugin and try again.
If you have the problem after reinstallation, please file an issue in the http://youtrack.jetbrains.com/issues/WI#newissue=yes (select JsTestDriver as a subsystem) and we'll discuss it further.
19.05.2012
I'm running IDEA 11.1.2 on Mac OS X 10.7.4. If I enable the JSTestDriver plugin, I can't open any projects or create new projects. Attempting to open a project I created before enabling the plugin produces no visible effect and logs the following to idea.log:


2012-05-18 23:40:40,789 [2130205] ERROR - ij.components.ComponentManager - Can't find bundle for base name com.google.jstestdriver.idea.MessageBundle, locale en_US
java.util.MissingResourceException: Can't find bundle for base name com.google.jstestdriver.idea.MessageBundle, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:705)
at com.google.jstestdriver.idea.MessageBundle.getBundle(MessageBundle.java:51)
at com.google.jstestdriver.idea.MessageBundle.message(MessageBundle.java:42)
at com.google.jstestdriver.idea.PluginResources.getPluginName(PluginResources.java:28)
at com.google.jstestdriver.idea.execution.JstdConfigurationType.(JstdConfigurationType.java:34)

...

at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145)
2012-05-18 23:40:40,790 [2130206] ERROR - ij.components.ComponentManager - IntelliJ IDEA 11.1.2 Build #IU-117.418
2012-05-18 23:40:40,790 [2130206] ERROR - ij.components.ComponentManager - JDK: 1.6.0_31
2012-05-18 23:40:40,790 [2130206] ERROR - ij.components.ComponentManager - VM: Java HotSpot(TM) Client VM
2012-05-18 23:40:40,790 [2130206] ERROR - ij.components.ComponentManager - Vendor: Apple Inc.
2012-05-18 23:40:40,790 [2130206] ERROR - ij.components.ComponentManager - OS: Mac OS X
2012-05-18 23:40:40,790 [2130206] ERROR - ij.components.ComponentManager - Last Action:
2012-05-18 23:40:40,790 [2130206] ERROR - ij.components.ComponentManager - Assertion failed: Can't instantiate component for: class com.intellij.execution.RunManager
java.lang.Throwable
at com.intellij.openapi.diagnostic.Logger.assertTrue(Logger.java:98)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(ComponentManagerImpl.java:127)
at com.intellij.openapi.components.impl.ComponentManagerImpl.a(ComponentManagerImpl.java:107)
at com.intellij.openapi.components.impl.ComponentManagerImpl.initComponents(ComponentManagerImpl.java:342)
at com.intellij.openapi.components.impl.ComponentManagerImpl.init(ComponentManagerImpl.java:85)

...

at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:145)
2012-05-18 23:40:40,792 [2130208] ERROR - ij.components.ComponentManager - IntelliJ IDEA 11.1.2 Build #IU-117.418
2012-05-18 23:40:40,792 [2130208] ERROR - ij.components.ComponentManager - JDK: 1.6.0_31
2012-05-18 23:40:40,792 [2130208] ERROR - ij.components.ComponentManager - VM: Java HotSpot(TM) Client VM
2012-05-18 23:40:40,792 [2130208] ERROR - ij.components.ComponentManager - Vendor: Apple Inc.
2012-05-18 23:40:40,792 [2130208] ERROR - ij.components.ComponentManager - OS: Mac OS X
2012-05-18 23:40:40,792 [2130208] ERROR - ij.components.ComponentManager - Last Action:
2012-05-18 23:40:40,793 [2130209] ERROR - ij.components.ComponentManager - Can't find bundle for base name com.google.jstestdriver.idea.MessageBundle, locale en_US
java.util.MissingResourceException: Can't find bundle for base name com.google.jstestdriver.idea.MessageBundle, locale en_US
at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1427)
at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1250)
at java.util.ResourceBundle.getBundle(ResourceBundle.java:705)
at com.google.jstestdriver.idea.MessageBundle.getBundle(MessageBundle.java:51)
at com.google.jstestdriver.idea.MessageBundle.message(MessageBundle.java:42)
at com.google.jstestdriver.idea.PluginResources.getPluginName(PluginResources.java:28)
at com.google.jstestdriver.idea.execution.JstdConfigurationType.(JstdConfigurationType.java:34)

...

There are many more stack traces in the log for the same timestamp, but this is already long enough.

If I disable the plugin and restart IDEA, everything is fine. Except I can't run my JavaScript tests anymore.

Any help would be greatly appreciated. I've found nothing useful on JetBrain's or Google's developer forums.

Thanks.

Thom
10.01.2012
please add integrated debugging support for tests - that would let me start getting serious about TDD in javascript.
07.05.2011
The wiped Global Libraries bug has been fixed in IDEA v10 .. v10.0.3 inclusively.
Plugin fix version is 1.3.2.
06.05.2011
The wiped Global Libraries bug is already fixed in IDEA v10.5 http://youtrack.jetbrains.net/issue/IDEA-65699 .
JsTestDriver plugin's fix version is 1.3.1.1.
Sorry for the inconvenience.
Anonymous
06.05.2011
After I installed the plugin, all my Global Libraries were wiped out and only the newly installed "JsTD Assertion Framework" remained. Uninstalling the plugin does not make the libs reappear nor remove that lib, so you have to delete it manually. If possible, try out the plugin on a separate machine; I've lost hours of work by trying it out. :-(
08.03.2011
I would love to help, but I have no knowledge about writing IntelliJ Plugins at all. Sorry.

Stefan
06.03.2011
@Stefan: no, I don't have a fix for the new IDEA yet. I need to find some time to build the plugin at head, and do some testing with current versions of all the IDE's.

Even if you build and install from source, it looks like there's an API change which needs fixing. It's probably easy :)
06.03.2011
Hi,

will Version 1.2.2b solve the problem with IntelliJ 10.0.2 (http://code.google.com/p/js-test-driver/issues/detail?id=209)?
If so, how can I manually install it?
Installation from the plugin repository will only provide 1.2...

Regards
Stefan
01.03.2011
Thanks Jon. Wow, JetBrains has been going nuts with new major version numbers, I haven't been able to keep up. The plugin is only marked until-build 102.9999 so I guess you had to manually install it. From the stack trace, it looks like there's a breaking API change again. :(

Please follow http://code.google.com/p/js-test-driver/issues/detail?id=209
Anonymous
01.03.2011
Hi, sorry meant to add the Intellij build number to the last post. It's 103.72

thanks
Jon
Anonymous
01.03.2011
Environment:

* IDEA 10.0.2
* Windows 7
* JDK 1.6.0_23


Steps to reproduce:
1. Downloaded and installed jsTestDriver plugin.
2. Opened panel, started jsTestDriver server and captured browser.
3. Created a new run configuration, pointing to jsTestDriver.conf file
4. Clicked run, the following error was generated:

com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties.(Lcom/intellij/execution/configurations/RuntimeConfiguration;)V: com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties.(Lcom/intellij/execution/configurations/RuntimeConfiguration;)V
java.lang.NoSuchMethodError: com.intellij.execution.testframework.sm.runner.SMTRunnerConsoleProperties.(Lcom/intellij/execution/configurations/RuntimeConfiguration;)V
at com.google.jstestdriver.idea.TestRunnerState.execute(Unknown Source)
at com.intellij.execution.impl.DefaultJavaProgramRunner.doExecute(DefaultJavaProgramRunner.java:88)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:85)
at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:157)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:96)
at com.intellij.openapi.project.DumbService$1.run(DumbService.java:76)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:652)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:505)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:404)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
27.02.2011
I think you should update the plugin within the IDE's plugin manager. If it doesn't offer the most recent version, then maybe look in Help -> About for the build number of your IDE, if it's greater than 102.9999 then I have to push a new release.
Anonymous
27.02.2011
Hi, i have Intellij 10.0.2 which comes with version 1.2 of the plugin. I've downloaded 1.2.2b from this page but how to I update the version in Intellij?
Hopefully this will fix the greyed-out run config button?
thanks
Anonymous
09.02.2011
We\'ve been running into issues with IntelliJ 10 and the jsTestDriver plug-in 1.2.2b. Upon running and updating the test javascript files, sometimes the javascript file does not get picked up by jstestdriver browser slaves. Sometimes this results in Test Not Found, and some other times it seems to be running an out of date version of the test script.

Simply editing the test javascript file would result in the aforementioned issue, it is however intermittent.

Anyone else running into similar problems?
Please  sign in  to leave a comment.