facile-it / paraunit

Run PHPUnit tests in parallel
https://engineering.facile.it/paraunit/
Apache License 2.0
140 stars 15 forks source link

LogPrinter causes fatal error when using the --repeat option #92

Closed Jean85 closed 7 years ago

Jean85 commented 7 years ago

When using the --repeat option, the PHPUnit processes crash with this output:

                                                   B "Bp                        
.pp..                                              B    9p                      
 "9BBBBBBpp.                                       B      9p                    
    " ""9BBBBBBpp                          .<eeP"B B      .B b                  
           "SANDROBpp              .     B B     B B      )B B                  
              "BFRABBBB>  .<pe6P\B B     B B     B B      $  B     .e           
                 5NICOBBB B     ·B B     B B     B Bqp.  :B  B     $ 4BBpp      
                   BMIKIB B        B     B B     B B   "^Bp  B    ) |BBB"\BBpp. 
                 .BALEBBB """9q.   B"""""B B"""""B B      1p B""""9p BBBBbBBBBBBB
               <BLUCABBBB B    "B  B     B B     B B       B B     9 9BBB< ^P"  
            .6BSERGIOBBBB B666666B B     B B     B B       9 P      7 9BBBBP    

PARAUNIT v0.8.2 - by Francesco Panina, Alessandro Lai & Shark Dev Team @ Facile.it
X

Execution time -- 00:00:00 

Executed: 1 test classes, 1 tests

Abnormal Terminations (fatal Errors, Segfaults) output:

1) UNKNOWN -- log not found
Abnormal termination -- complete test output:
PHPUnit 5.7.6 by Sebastian Bergmann and contributors.

Fatal error: Uncaught exception 'ReflectionException' with message 'Class  does not exist' in /home/paraunit/projects/src/Paraunit/Parser/JSON/LogPrinter.php on line 301

ReflectionException: Class  does not exist in /home/paraunit/projects/src/Paraunit/Parser/JSON/LogPrinter.php on line 301

Call Stack:
    0.0001     236232   1. {main}() /home/paraunit/projects/vendor/phpunit/phpunit/phpunit:0
    0.0044     883512   2. PHPUnit_TextUI_Command::main() /home/paraunit/projects/vendor/phpunit/phpunit/phpunit:52
    0.0044     884272   3. PHPUnit_TextUI_Command->run() /home/paraunit/projects/vendor/phpunit/phpunit/src/TextUI/Command.php:118
    0.0178    3068544   4. PHPUnit_TextUI_TestRunner->doRun() /home/paraunit/projects/vendor/phpunit/phpunit/src/TextUI/Command.php:188
    0.0199    3446768   5. PHPUnit_Framework_TestSuite->run() /home/paraunit/projects/vendor/phpunit/phpunit/src/TextUI/TestRunner.php:487
    0.0201    3461352   6. PHPUnit_Framework_TestResult->startTestSuite() /home/paraunit/projects/vendor/phpunit/phpunit/src/Framework/TestSuite.php:665
    0.0201    3461568   7. Paraunit\Parser\JSON\LogPrinter->startTestSuite() /home/paraunit/projects/vendor/phpunit/phpunit/src/Framework/TestResult.php:367
    0.0201    3461624   8. Paraunit\Parser\JSON\LogPrinter->getLogFilename() /home/paraunit/projects/src/Paraunit/Parser/JSON/LogPrinter.php:169
    0.0201    3461680   9. Paraunit\Parser\JSON\LogPrinter->getTestFilename() /home/paraunit/projects/src/Paraunit/Parser/JSON/LogPrinter.php:290
    0.0201    3461928  10. ReflectionClass->__construct() /home/paraunit/projects/src/Paraunit/Parser/JSON/LogPrinter.php:301

1 files with ABNORMAL TERMINATIONS (FATAL ERRORS, SEGFAULTS):
 ThreeGreenTestStub.php
' does not contain "ABNORMAL TERMINATIONS".

I'm adding a regression test to track down this problem.

Jean85 commented 7 years ago

Due to the large refactoring, this seems to have been fixed with #94.