All Projects → atoum → Phpstorm Plugin

atoum / Phpstorm Plugin

Licence: mit
Integrate atoum inside PhpStorm

Programming Languages

java
68154 projects - #9 most used programming language

Labels

Projects that are alternatives of or similar to Phpstorm Plugin

Fxtest
接口自动化测试平台——python+flask版,支持http协议,java 版本开发完毕https://github.com/liwanlei/plan
Stars: ✭ 564 (+2352.17%)
Mutual labels:  test
Faker
Faker is a pure Elixir library for generating fake data.
Stars: ✭ 673 (+2826.09%)
Mutual labels:  test
Webdriverio
Next-gen browser and mobile automation test framework for Node.js
Stars: ✭ 7,214 (+31265.22%)
Mutual labels:  test
Httptest
Qiniu httptest utilities
Stars: ✭ 571 (+2382.61%)
Mutual labels:  test
React Fake Props
🔮 Magically generate fake props for your React tests
Stars: ✭ 604 (+2526.09%)
Mutual labels:  test
Specs2
Software Specifications for Scala
Stars: ✭ 696 (+2926.09%)
Mutual labels:  test
Richgo
Enrich `go test` outputs with text decorations.
Stars: ✭ 544 (+2265.22%)
Mutual labels:  test
Jest In Case
Jest utility for creating variations of the same test
Stars: ✭ 902 (+3821.74%)
Mutual labels:  test
Qa bible
Библия QA это почти 300 страниц обновляемой смеси ответов на вопросы с реальных собеседований на QA, полезных ресурсов и статей, перевода интересного контента с зарубежных ресурсов и агрегации материала с отечественных.
Stars: ✭ 657 (+2756.52%)
Mutual labels:  test
Cocotb
cocotb, a coroutine based cosimulation library for writing VHDL and Verilog testbenches in Python
Stars: ✭ 740 (+3117.39%)
Mutual labels:  test
Thea11ymachine
The A11y Machine is an automated accessibility testing tool which crawls and tests pages of any web application to produce detailed reports.
Stars: ✭ 574 (+2395.65%)
Mutual labels:  test
Rest Assured
Java DSL for easy testing of REST services
Stars: ✭ 5,646 (+24447.83%)
Mutual labels:  test
Gogradle
A Gradle Plugin Providing Full Support for Go
Stars: ✭ 712 (+2995.65%)
Mutual labels:  test
Vue Testing Library
🦎 Simple and complete Vue.js testing utilities that encourage good testing practices.
Stars: ✭ 567 (+2365.22%)
Mutual labels:  test
Cli Prompts Test
Write e2e tests for CLI apps with ease
Stars: ✭ 17 (-26.09%)
Mutual labels:  test
Carina
Carina automation framework: Web, Mobile, API, DB
Stars: ✭ 549 (+2286.96%)
Mutual labels:  test
Cypress React Unit Test
Unit test React components using Cypress
Stars: ✭ 685 (+2878.26%)
Mutual labels:  test
React Generate Props
Generate default props based on your React component's PropTypes
Stars: ✭ 23 (+0%)
Mutual labels:  test
Aruba
Test command-line applications with Cucumber-Ruby, RSpec or Minitest. The most up to date documentation can be found on Cucumber.Pro (https://app.cucumber.pro/projects/aruba)
Stars: ✭ 900 (+3813.04%)
Mutual labels:  test
Smhasher
Hash function quality and speed tests
Stars: ✭ 719 (+3026.09%)
Mutual labels:  test

atoum PhpStorm Plugin Build Status

Integrates atoum into PhpStorm.

Features :

  • Go to the test class from the tested class (shortcut: alt+shift+K)
  • Go to the tested class from the test class (shortcut: alt+shift+K)
  • Execute tests inside PhpStorm (shortcut: alt+shift+M)
  • Execute all project's test inside PhpStorm (shortcut: alt+shift+V)
  • Easily identify test files by a custom icon

Detailed Features

Execute tests inside PhpStorm

By an entry on the run menu and on the right click menu.

Demo

You can run the tests from both the test file or the tested classe's file.

Your test file and tested file will automatically be save before running the test.

The default keyboard shortcut to execute the test is alt+shift+M.

Go to the test class from the tested class

From the tested class you can go to the test class by clicking on the icon on the left of the class,

Demo

or from a menu entry in navigation,

Demo

or by an entry bin the right click menu.

Demo

The default keyboard shortcut to switch file is alt+shift+K.

Go to the tested class from the test class

From the test class you can go to the tested class by clicking on the icon on the left of the class,

Demo

or from a menu entry in navigation,

Demo

or by an entry bin the right click menu.

Demo

The default keyboard shortcut to switch file is alt+shift+K.

You can also run the test on the project view. From here you can launch tests on an entire directory:

Demo

Easily identify test files by a custom icon

Atoum's test files are displayed with a different icon, like that you will easily differentiate them from other PHP files.

Demo

Demo

Execute all tests inside PhpStorm

The plugin lets you run all your project's test suites inside PhpStorm. You can run them by selecting "run -> atoum - run all tests" (or with the default keyboard shortcut : alt+shift+V).

atoum will be launched without a directory or file parameter, so, you will need to add something like this in your .atoum.php file in order to run all the tests : $runner->addTestsFromDirectory(__DIR__ . '/tests/units');.

Demo

Customize atoum's settings for running inside PhpStorm

Via .atoum.phpstorm.php

If you want to customize the way tests are launched only when launched inside phpstorm, your can create a .atoum.phpstorm.php file. If it exists, the file will be loaded with the -c option.

For example:

// .atoum.phpstorm.php
$script->setMaxChildrenNumber(1);

Via atoum.php

If you want to customize the way tests are launched only when launched inside phpstorm, your can create add some conditions in your .atoum.php file : the plugin exposes an environment variable called PHPSTORM with value 1.

For example:

// .atoum.php
if (getenv("PHPSTORM")) {
  $script->setMaxChildrenNumber(1);
}

Launch tests inside a docker container

(this also works to launch test with a different version of php than the default)

Add a php executable file

In the project's directory, were create a file named php. For example in a docker/bin directory:

# docker/bin/php
docker run -v `pwd`:/var/www -w /var/www php:7 php [email protected]

Configure PhpStorm to use this interpreter

  • Open File -> Settings
  • Go to Language & Frameworks -> PHP
  • Click on the button on the right of the "Interpreter" select
  • Click on the +
  • Choose the file created previously as PHP executable. For example /home/user/tmp/test_php7/docker/bin/php.

Demo

Now, your tests will be executed inside a docker container.

Installation

Inside PhpStorm (recommended)

  • Open PhpStorm
  • Go to File -> Settings, then click on Plugins
  • Click on Browse repositories
  • Search for atoum in the list, then click on the install button
  • Restart PhpStorm

Via the jar

  • Download the lasted version of the .jar on the releases pages
  • Open PhpStorm
  • Go to File -> Settings, then click on Plugins
  • Click on the install from disk button, then select to downloaded jar
  • Restart PhpStorm

Links

Licence

atoum phpstorm-plugin is released under the MIT License. See the bundled LICENSE file for details.

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].