Run nodeunit tests with WebStorm 3.0
As you know Node.js support has been already presented in WebStorm 3.0. Now we would like to introduce integration with nodeunit — unit testing framework for Node.js.
To start you should have nodeunit module installed. Make sure NODE_PATH environment variable points to the parent directory of nodeunit module.
To run tests first you need to create Nodeunit Run Configuration:
- Open Run/Debug Configurations dialog (Main menu | Run | Edit Configurations)
- Press icon and select Nodeunit
Next fill Node path and Working Directory as you usually do in NodeJS Run Configuration. Next select what kind of test you intend to run from Run list. Finally you have to specify a path to a single test file or a directory (this path should be relative to the working directory you have already specified).
Save Nodeunit Run Configuration and run it (Main menu | Run | Run…).
You will see something like this.
You can navigate from the stack trace to the source code.
If you prefer to run your tests often, it’s helpful to use Shift+F10 shortcut to rerun the last Run Configuration.
Test Node.js app with pleasure!
Note: Users of PhpStorm, as well as other JetBrains IDE – IntelliJ IDEA, PyCharm, RubyMine, and AppCode – should install “NodeJS” plugin from the plugin repository.
Working with Windows Azure SQL Database in PhpStorm
PhpStorm provides us the possibility to connect to Windows Azure SQL Database right from within the IDE. In this post, we’ll explore several options that are available for working with Windows Azure SQL Database (or database systems like SQL Server, MySQL, PostgreSQL or Oracle, for that matter): …
Change signature refactoring in PhpStorm
A very powerful refactoring is the Change signature refactoring in PhpStorm. It enables us to modify a function signature in many ways: we can change the function name, change its visibility, add, remove and reorder parameters as well as rename parameters. (more…)…
Folding for imports in PhpStorm 6.0
In PhpStorm 6, we've introduced code folding for imports. Any list of imports will now be folded into a single line. This greatly reduced clutter in your editor when having a lot of imports! (more…)…
Drag & Drop Project Files to Remote Hosts in PhpStorm
The Remote Host pane allows us to work directly on a remote server through FTP, FTPS, SFTP or a local/network folder. A lot of people asked us to add drag & drop to the Remote Host pane in PhpStorm. Good news: PhpStorm 6 comes with drag & drop as well as copy & paste support from the pro…