piece / makegood

A continuous test runner for Eclipse PDT
https://github.com/piece/makegood/wiki
44 stars 17 forks source link

Makegood 3.1.0 + PHPUnit 4.1.4 as phar + Eclipse Luna - how to? #67

Open wyssman opened 10 years ago

wyssman commented 10 years ago

Can't figure out how to configure Eclipse + Makegood to use PHPUnit in phar archive. I added external phar In Eclipse project properties - PHP Include Path - Libraries, Makegood sees PHPUnit_Framework_TestCase class and can execute tests, but when I run test, error occures: Class 'PHPUnit_Framework_TestSuite' not found (in \resources\php\vendor\piece\stagehand-testrunner\src\Collector\PHPUnitCollector.php on line 124).

After long experiments I installed PHPUnit via Composer and added "require_once 'vendor/autoload.php';" in preload script, but I don't need Composer, phar is more convinient.

But how can I use PHPUnit as phar? PHPUnit will not be distributed as PEAR package, so please update official User Manual (http://piece-framework.com/projects/makegood/wiki/User_Guides_v1).

Archanciel commented 10 years ago

Hi,

You may find useful having a look on the end of the doc I wrote here: https://github.com/Archanciel/Joomla_3_vs_15_PHPUnit_testing