Skip to content

Commit

Permalink
composer script command added for easy test command & readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
arifpavel committed Apr 5, 2021
1 parent dcb3716 commit 1def5e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":648:{a:2:{s:7:"defects";a:5:{s:47:"Tests\Unit\PluginActivatdTest::testPluginLoaded";i:4;s:7:"Warning";i:6;s:48:"Tests\Unit\PluginActivatedTest::testPluginLoaded";i:4;s:50:"Tests\Unit\LocalizationSetupTest::testPluginLoaded";i:3;s:56:"Tests\Unit\LocalizationSetupTest::testLocalizationLoaded";i:3;}s:5:"times";a:6:{s:47:"Tests\Unit\PluginActivatdTest::testPluginLoaded";d:0.168;s:7:"Warning";d:0.003;s:48:"Tests\Unit\PluginActivatedTest::testPluginLoaded";d:0;s:50:"Tests\Unit\LocalizationSetupTest::testPluginLoaded";d:0.19;s:56:"Tests\Unit\LocalizationSetupTest::testLocalizationLoaded";d:0.181;s:40:"Tests\Unit\ExampleTest::testPluginLoaded";d:0.15;}}}
C:37:"PHPUnit\Runner\DefaultTestResultCache":649:{a:2:{s:7:"defects";a:5:{s:47:"Tests\Unit\PluginActivatdTest::testPluginLoaded";i:4;s:7:"Warning";i:6;s:48:"Tests\Unit\PluginActivatedTest::testPluginLoaded";i:4;s:50:"Tests\Unit\LocalizationSetupTest::testPluginLoaded";i:3;s:56:"Tests\Unit\LocalizationSetupTest::testLocalizationLoaded";i:3;}s:5:"times";a:6:{s:47:"Tests\Unit\PluginActivatdTest::testPluginLoaded";d:0.168;s:7:"Warning";d:0.003;s:48:"Tests\Unit\PluginActivatedTest::testPluginLoaded";d:0;s:50:"Tests\Unit\LocalizationSetupTest::testPluginLoaded";d:0.19;s:56:"Tests\Unit\LocalizationSetupTest::testLocalizationLoaded";d:0.181;s:40:"Tests\Unit\ExampleTest::testPluginLoaded";d:0.271;}}}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ A starter plugin to create elementor addon.
### Testing

Mentor Starter has full featured testing environment out of the box.
1. Run ```vendor/bin/phpunit``` to run phpunit tests. [Brain Moneky](https://brain-wp.github.io/BrainMonkey/docs/wordpress-why-bother.html) along with [PHPUnit](https://phpunit.readthedocs.io/en/9.1/installation.html) used for testing.
1. Run ```composer test``` to run phpunit tests. [Brain Moneky](https://brain-wp.github.io/BrainMonkey/docs/wordpress-why-bother.html) along with [PHPUnit](https://phpunit.readthedocs.io/en/9.1/installation.html) used for testing.

### License
[GPLv2](https://www.gnu.org/licenses/old-licenses/gpl-2.0.en.html)
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
"brain/monkey": "2.*",
"codedungeon/phpunit-result-printer": "dev-master"
},
"scripts": {
"test": "vendor/bin/phpunit"
},
"license": "GPLV2",
"authors": [
{
Expand Down

0 comments on commit 1def5e2

Please sign in to comment.