PHPUnit test in Eclipse 4.2 using Makegood not working

I have PHPUnit installed using the composer, and everything works as expected. I can run the tests and get the expected result.

This is my composer .json

...
"require-dev": 
{
  "phpunit/phpunit": "4.1.*",
  "piece/stagehand-testrunner": ">=3.6.1" 
},
...

Then I installed MakeGood 2.5 on the market,

  • In the section "Makegood"> "General", I chose to preload the script
  • I am using the template template 'test.php $'
  • In the section MakeGood> PHPUnit, I gave the path to the configuration file.
  • In the PHP section Include Path> Libraries, I added the path to the composer / provider.

But when I select a test file and I right-click and select "Run Tests", the bootstrap file is never called. Even if I manually add 'require_once "vendor/autoload.php";'to the file, the test does not actually run.

, script .

, ? Eclipse MakeGood?

FFMG

+4
1

{
    "require-dev": {
        "phpunit/php-code-coverage": "3.0.*@dev",
        "phpunit/phpunit-mock-objects": "2.3.*@dev",
        "sebastian/global-state": "1.0.*@dev",
        "phpunit/phpunit": "4.4.*@dev",
        "piece/stagehand-testrunner": "4.1.*@dev",
        "phpunit/phpunit-skeleton-generator": "2.0.*@dev"
    },
    "require": {
        "mikey179/vfsStream": "1.4.*@dev"
    }
}

makegood, , .

+1

Source: https://habr.com/ru/post/1540439/


All Articles