All Projects → nette-intellij → intellij-nette-tester

nette-intellij / intellij-nette-tester

Licence: BSD-2-Clause license
Nette Tester integration into PhpStorm.

Programming Languages

java
68154 projects - #9 most used programming language
PHP
23972 projects - #3 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to intellij-nette-tester

laravel-query-intellij
💿 Laravel Query Builder integration for PhpStorm
Stars: ✭ 37 (+27.59%)
Mutual labels:  phpstorm, phpstorm-plugin
laravel-tinker
Adds a way to write php and run it directly in Laravels' Artisan Tinker.
Stars: ✭ 123 (+324.14%)
Mutual labels:  phpstorm, phpstorm-plugin
idea-php-advanced-autocomplete
Plugin for PhpStorm IDE. Adds auto-completion support for various built-in PHP functions, where parameter is a string literal.
Stars: ✭ 57 (+96.55%)
Mutual labels:  phpstorm, phpstorm-plugin
idea-php-typo3-plugin
TYPO3 CMS Plugins for IntelliJ IDEA / PhpStorm
Stars: ✭ 93 (+220.69%)
Mutual labels:  phpstorm, phpstorm-plugin
idea-php-shopware-plugin
Shopware Plugin for PhpStorm which extends Symfony Plugin
Stars: ✭ 50 (+72.41%)
Mutual labels:  phpstorm, phpstorm-plugin
doctrine-phpstorm-meta
PhpStorm meta data for expected arguments completion.
Stars: ✭ 35 (+20.69%)
Mutual labels:  phpstorm
sveltejs-idea-plugin
Idea plugin for sveltejs components
Stars: ✭ 14 (-51.72%)
Mutual labels:  phpstorm
open-github-links-in-ide
Browser extension allowing to open files in your IDE directly from GitHub, available for Chrome and Firefox.
Stars: ✭ 55 (+89.66%)
Mutual labels:  phpstorm
log
Aplus Framework Log Library
Stars: ✭ 14 (-51.72%)
Mutual labels:  phpstorm
intellij-neos
Support for the Neos CMS in Intellij IDEA / PhpStorm
Stars: ✭ 37 (+27.59%)
Mutual labels:  phpstorm
phpstorm-magento-live-templates
PHPStorm Live Templates for Magento 2
Stars: ✭ 49 (+68.97%)
Mutual labels:  phpstorm
ReactPropTypes-Plugin
A Jetbrains Plugin for react PropTypes
Stars: ✭ 62 (+113.79%)
Mutual labels:  phpstorm
pagination
Aplus Framework Pagination Library
Stars: ✭ 167 (+475.86%)
Mutual labels:  phpstorm
intellij-drupal-run-tests
Provides a run configuration that executes Drupal's test runner (for Simpletest, Unit, Kernel, Functional, FunctionalJavascript.)
Stars: ✭ 24 (-17.24%)
Mutual labels:  phpstorm
PhpStorm-Live-Templates-Craft-CMS
PhpStorm Live Templates for Craft CMS
Stars: ✭ 34 (+17.24%)
Mutual labels:  phpstorm
crypto
Aplus Framework Crypto Library
Stars: ✭ 20 (-31.03%)
Mutual labels:  phpstorm
xmpp-php
PHP client library for XMPP (Jabber) protocol
Stars: ✭ 33 (+13.79%)
Mutual labels:  phpstorm
phpstorm-settings
PhpStorm settings used for Craft CMS development.
Stars: ✭ 46 (+58.62%)
Mutual labels:  phpstorm
daily
7 Beautiful and famous dark themes with Operator mono font superpowers
Stars: ✭ 34 (+17.24%)
Mutual labels:  phpstorm
dimmed
👔 Dimmed Color Theme for Sublime Text 2/3
Stars: ✭ 18 (-37.93%)
Mutual labels:  phpstorm

Nette Tester integration into PhpStorm

Version Downloads

This plugin integrates Nette Tester into PhpStorm IDE.

Installation and requirements

This plugin is written for PhpStorm 2016.3 and above and is compiled for Java 8. You can find it in the Jetbrains plugin repository. Install it from Preferences → Plugins → Browse repositories... and search for Tester.

Usage

Configuration

This plugin provides a new configuration type for Nette Tester:

Run configuration

  • Test scope is the directory containing the tests you wish to run.
  • Tester executable specifies path to the Tester runner (/path/to/your/project/vendor/bin/tester if you installed Tester via Composer).
  • Tester options allows you to specify options for Tester script (refer to the docs). This field serves for options you cannot specify otherwise (see below).
  • Setup script allows you to specify the setup script (--setup option). You can leave this field blank if you don't use any.
  • Interpreter and interpreter options allow you to modify the environment in which your tests run (-p option and -d options).
  • Path to php.ini specifies the configuration file to use (-c option). You can leave this field blank, in which case tests will run without any configuration loaded.

Usage on Windows

Composer seems to do some necessary, but unfortunate transformations on vendor binaries. Therefore you need to point the Tester executable option to the actual PHP file in /path/to/your/project/vendor/nette/tester/src/tester.php.

Interpreting results

If you now run this configuration, test results will start to show in the Test Runner window:

Test results

To the left, there is a list of tests. You can toggle showing passed and skipped tests. If you click the test, you will see the detailed output in the console window to the right.

Navigating between a class and its test

You can navigate between a class and its test, or create a test for a class easily, via Navigate → Test.

The navigation is based on convention (class name + Test suffix), the creation assumes your tests reside in the same namespace as the code; if you use a different scheme, you can configure source to test namespace mapping in the project settings under Languages & Frameworks → PHP → Nette Tester.

Preferences

If you create a test for a class, the dialog now follows your namespace mapping and automatically updates the target test namespace (and directory, following the Directories project settings).

Create a TestCase dialog

In the project settings, you can also configure the path to your test environment bootstrap file, which is then automatically required in the generated TestCase files.

Running a single test method

You can right-click a single test method to run or even debug it in isolation. This merely executes the file as a PHP script, with the method name as a single argument.

Running tests from a directory

You can right-click a directory to run the tests within it. For this to be truly a one-click action, you should configure the Tester executable in the Nette Tester default run configuration template.

Default run configuration

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].