Tag Archives: unit testing

PHPUnit installation via Composer in PhpStorm

Since version 3.7, PHPUnit allows us to install the test runner and optional dependencies using Composer. With PhpStorm 6, this workflow is now supported from the IDE. Using both the bundled Composer support and PhpStorm’s unit testing support, we can … Continue reading

Posted in Cool Feature, PhpStorm | Tagged , , , , | 7 Comments

Running CakePHP2 Unit Tests in PhpStorm

CakePHP2 comes with unit testing support powered by PHPUnit. In addition to the features offered by PHPUnit, CakePHP offers some additional features to make testing easier. Unit tests in CakePHP rely on a custom test runner which can be run … Continue reading

Posted in Cool Feature, PhpStorm | Tagged , , , , | 7 Comments

Continuous Integration for PHP using TeamCity

If you have multiple team members, you should be doing Continuous Integration (CI). By building the desired output artifacts on a frequent basis and analyzing their quality using unit tests and code coverage, you will find that there are fewer … Continue reading

Posted in Cool Feature, Tutorial | Tagged , , , , , , | 2 Comments

PhpStorm Type Inference and Mocking Frameworks

Recently, we received a question on Twitter asking about how PhpStorm handles type inference when working with mocking frameworks. Imagine having the following two classes: When writing a unit test for ClassA, it’s very easy to mock ClassB using PHPUnit’s … Continue reading

Posted in Cool Feature, PhpStorm, Tutorial | Tagged , , , , | 7 Comments

Code Coverage for JavaScript Unit Testing

Measuring JavaScript code coverage naturally complements unit testing. It provides a clear picture of which parts of your code remain untested, and helps you focus additional tests on the uncovered code. From now on, users of JsTestDriver can measure code … Continue reading

Posted in Cool Feature, Tutorial, WebStorm | Tagged , , , , , | 5 Comments

Run nodeunit tests with WebStorm 3.0

Hello everybody, 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 … Continue reading

Posted in Cool Feature, WebStorm | Tagged , , | 6 Comments

JavaScript unit testing support

If you’re a JavaScript developer, you probably know that the quality and correctness of your application are crucial. Well, consistency and regression testing just got a little less painful. Meet JsTestDriver plugin – an open-source project that was originally started at … Continue reading

Posted in Cool Feature, PhpStorm, Tutorial, WebStorm | Tagged , , , , , , , , | 16 Comments