WebStorm 7.0.2 is available: Mocha integration and improved Dart support

Today you can update WebStorm to its latest version 7.0.2. There are three good reasons for that.

First, we significantly improved support for Dart language and added new features that are available in the recent Google Dart SDK update.

  • Start debugging Dart code in Dartium is much easier now: WebStorm detects Dart projects and start Debug session in Dartium by default.
  • Upgrade dependencies and pub build commands are now available right in the context menu for pubspec.yaml file.

Update: read Getting started with Dart tutorial.

Second, we added Mocha test framework integration. Install Mocha with npm, create new Mocha Run/Debug Configuration, specify the test directory and run your tests in one click. Watch a screencast by John Lindquist on using Mocha in your project.

And finally, we made dozens of fixes and minor improvements. For example, now you can enjoy code completion for Flexbox CSS properties.

You can install update from the IDE or download the installation file from the product web site. Have a look at the release notes.

Develop with pleasure!
WebStorm Team

About Ekaterina Prigara

Ekaterina Prigara is WebStorm product marketing manager at JetBrains. She's passionate about new technologies, UX and coffee.
This entry was posted in Release Announcements. Bookmark the permalink.

27 Responses to WebStorm 7.0.2 is available: Mocha integration and improved Dart support

  1. Nick Middleweek says:

    Nice video, for the most part the video was blurry but I guess we get the idea.

    Is there a section on customising IntelliJ IDEA to have these new features and which plugins we need to install?

    Cheers,
    Nick

    • Ekaterina Prigara says:

      Hi Nick,

      I think it could be fixed by selecting better video quality (720p HD is available).

      These features should be available in IDEA 13 (you can try Beta now) as plugins.

    • Sergey Simonchik says:

      Mocha support is available as a part of NodeJS plugin.
      And all Dart features are packed into Dart plugin.

  2. Marjorie Roswell says:

    how to install from the IDE?

    • Ekaterina Prigara says:

      Unfortunately, there is no patch from WebStorm 7.0 (fresh install is required), but if your have 7.0.1 it should be easy to update – Check for updates (in main menu).

  3. AW says:

    Anyone have experience with the Dart support? Any better than the Eclipse IDE?

  4. Pingback: Meet WebStorm 8 Development Roadmap | JetBrains WebStorm Blog

  5. Jeremie Weldin says:

    Anyone else having issues with javascript debugging on mac with chrome since updating to 7.0.2?

    Now it hangs and I get this in the console: GET http://localhost:63342/FDFA6052-1C12-4655-B658-0DBF2414422D/48/aHR0cDovL2x…S9qcy9tb2JpbGUtc2l0ZS1jdXN0b20tanFtLWRlZmF1bHRzLmpzP189MTM4NDM2MzYwOTExNA== 404 (Not Found) aHR0cDovL2xvY2FsaG9zdDo2MzM0Mi9qcXVlcnktbW9iaWxlL21vYmlsZS9qcy9tb2JpbGUtc2l0ZS1jdXN0b20tanFtLWRlZmF1bHRzLmpzP189MTM4NDM2MzYwOTExNA==

    Mac OS X 10.9
    Chrome 31.0.1650.48

    Worked fine just before I ran the update.
    I have also tried restarting, changing the port on the debugger and the javascript debug config.

  6. martin says:

    Hi, this is awesome, is there any way to use chai and sinon with mocha in webstorm ?

  7. Brainenjii says:

    What about coverage with mocha?

  8. Alex Schenkman says:

    Hi, about the mocha plugin:

    1) How can run only one test instead of the whole test folder?
    This is handy to avoid running the whole suite while working only on one file.

    2) Is there any Coffeescript support?
    In the command line I can add –compilers coffee:coffee-script to let Mocha run my coffee test. Then I even get stacktraces with coffee line numbers.
    Webstorm runs the tests as js, and give the stacktrace in js line numbers.

    3) This runs my tests twice, if there is a mocha.opts present in the test folder.
    Once for the coffee version, and once for the js version.

    Thanks!

  9. Maryna Cherniavska says:

    Can’t get Mocha test to run from WS. Getting this:
    timers.js:116
    process.nextTick(function() {
    ^
    TypeError: Object # has no method ‘nextTick’

    I have the node and mocha directories in debug config unchanged, and just the test directory set up manually as shown in video. Any idea what I’m doing wrong?

  10. Pingback: Hello World – Unit Test | Vish Kari

  11. Tony says:

    Mocha plugin is no longer registered in plugins repo.
    Can’t install it for IDEA 13.1.3

    • Sergey Simonchik says:

      Mocha support is available as a part of NodeJS plugin. There is no Mocha plugin in the plugin repository.
      Try to install NodeJS plugin.

  12. spencer says:

    Thanks for this!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code class="" title="" data-url=""> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre class="" title="" data-url=""> <span class="" title="" data-url="">