An open API service indexing awesome lists of open source software.

https://github.com/jetbrains/resharper-phantomjs

ReSharper extension to automatically configure PhantomJS
https://github.com/jetbrains/resharper-phantomjs

javascript-tests jetbrains phantomjs resharper resharper-extension resharper-plugin

Last synced: 18 days ago
JSON representation

ReSharper extension to automatically configure PhantomJS

Awesome Lists containing this project

README

          

[![official JetBrains project](http://jb.gg/badges/official-flat-square.svg)](https://confluence.jetbrains.com/display/ALL/JetBrains+on+GitHub)

# resharper-phantomjs

An extension for ReSharper that bundles [PhantomJS](http://phantomjs.org) and automatically configures ReSharper to use it when running JavaScript tests. You can install the extension from ReSharper's Extension Manager dialog.

# More info

ReSharper 7 introduced support for [running JavaScript unit tests](http://blogs.jetbrains.com/dotnet/2012/07/unit-testing-improvements-in-resharper-7/), with support for [Jasmine](http://pivotal.github.io/jasmine/) and [QUnit](http://qunitjs.com/). By default, tests are run in the system browser, and reported in the normal ReSharper test runner. This is inconvenient, since it opens a new window on each run, and is unable to close it at the end of the run.

However, ReSharper 7 also introduced the option to run tests with PhantomJS, which is a "headless" web browser, based on WebKit. This is a browser with no user interface, and since it doesn't need to draw anything - it's FAST. The only downside is that you need to download and install PhantomJS yourself, and point ReSharper to the executable.

This extension automates the process. It bundles the current version of PhantomJS (1.9.2) into the extension, and includes a settings file that automatically configures ReSharper to use this bundled version.