{"id":19594086,"url":"https://github.com/nette-intellij/intellij-nette-tester","last_synced_at":"2025-10-06T19:12:06.927Z","repository":{"id":56180913,"uuid":"51821594","full_name":"nette-intellij/intellij-nette-tester","owner":"nette-intellij","description":"Nette Tester integration into PhpStorm.","archived":false,"fork":false,"pushed_at":"2021-10-24T21:50:10.000Z","size":2078,"stargazers_count":32,"open_issues_count":14,"forks_count":7,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-05T01:04:35.736Z","etag":null,"topics":["nette-tester","phpstorm","phpstorm-plugin","testing"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nette-intellij.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-02-16T08:54:32.000Z","updated_at":"2025-02-23T10:57:18.000Z","dependencies_parsed_at":"2022-08-15T14:10:43.169Z","dependency_job_id":null,"html_url":"https://github.com/nette-intellij/intellij-nette-tester","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette-intellij%2Fintellij-nette-tester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette-intellij%2Fintellij-nette-tester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette-intellij%2Fintellij-nette-tester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nette-intellij%2Fintellij-nette-tester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nette-intellij","download_url":"https://codeload.github.com/nette-intellij/intellij-nette-tester/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251162700,"owners_count":21545801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nette-tester","phpstorm","phpstorm-plugin","testing"],"created_at":"2024-11-11T08:42:15.506Z","updated_at":"2025-10-06T19:12:01.864Z","avatar_url":"https://github.com/nette-intellij.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Nette Tester integration into PhpStorm\n\n[![Version](http://phpstorm.espend.de/badge/8226/version)](https://plugins.jetbrains.com/plugin/8226)\n[![Downloads](http://phpstorm.espend.de/badge/8226/downloads)](https://plugins.jetbrains.com/plugin/8226)\n\nThis plugin integrates [Nette Tester](https://tester.nette.org) into PhpStorm IDE.\n\n\n## Installation and requirements\n\nThis 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`.\n\n\n## Usage\n\n### Configuration\n\nThis plugin provides a new configuration type for Nette Tester:\n\n![Run configuration](doc/run_configuration.png)\n\n- **Test scope** is the directory containing the tests you wish to run.\n- **Tester executable** specifies path to the Tester runner (`/path/to/your/project/vendor/bin/tester` if you installed Tester via Composer).\n- **Tester options** allows you to specify options for Tester script (refer to the [docs](https://tester.nette.org/en/)). This field serves for options you cannot specify otherwise (see below).\n- **Setup script** allows you to specify the setup script (`--setup` option). You can leave this field blank if you don't use any.\n- **Interpreter** and **interpreter options** allow you to modify the environment in which your tests run (`-p` option and `-d` options).\n- **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.\n\n#### Usage on Windows\n\nComposer 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`.\n\n\n### Interpreting results\n\nIf you now run this configuration, test results will start to show in the Test Runner window:\n\n![Test results](doc/test_results.png)\n\nTo 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.\n\n\n### Navigating between a class and its test\n\nYou can navigate between a class and its test, or create a test for a class easily, via Navigate → Test.\n\nThe 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 \u0026 Frameworks → PHP → Nette Tester.\n\n![Preferences](doc/preferences.png)\n\nIf 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).\n\n![Create a TestCase dialog](doc/create_test_dialog.png)\n\nIn 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.\n\n\n### Running a single test method\n\nYou 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.\n\n\n### Running tests from a directory\n\nYou 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.\n\n![Default run configuration](doc/default_run_configuration.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnette-intellij%2Fintellij-nette-tester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnette-intellij%2Fintellij-nette-tester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnette-intellij%2Fintellij-nette-tester/lists"}