The plugin allows you to run a test with the debugger. Fortunately, Pest works well with Xdebug. And again, the plugin can autocomplete the properties that are defined.ĭebugging code is often necessary. This is very useful if you need to share some data across multiple tests. In that code, you can assign a value to a property that will be available in the tests themselves. ![]() The plugin supports autocompletion, so you can see what assertions are available as you type! Pest lets you write assertions by calling functions or methods on $this. ![]() Now you can change your test or simply run the current configuration by pressing Ctrl+R ( Shift+F10 on Windows)Ī run configuration can also be created by clicking the PEST styled run icon that is in the gutter on the line with the test. You can place the caret outside any particular test but still in the file to trigger all the tests in that file.Īfter pressing run, your new run configuration is available and can be edited. When you place your caret inside a test and trigger the run window, a run configuration will be created for that specific test. Just like PHPUnit test, you can run your PEST test directly from PhpStorm. Just search for “Pest” and install it from there. You can find the plugin in the JetBrains Marketplace, a platform for plugin vendors to deliver tools like Pest to a wider audience and quickly roll out updates for everyone. ![]() The source code behind the plugin is open source and community-driven, just like Pest itself. With this plugin, testing your code in your favorite IDE is even simpler and faster! The Pest PhpStorm plugin is a new addition to PhpStorm’s growing ecosystem. It is a new PHP testing framework with a focus on simplicity.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |