Replies: 4 comments
-
It is likely you have a race condition that only occurs within the concurrency operations of parallel tests running. Which means that multiple tests use the same I/O device (i.e. a simple file on the filesystem) and they step on each other. Avoid this by using unique file names for each TestCase, for example: protected function setUp(): void
{
$this->file = __DIR__ . '/test_file_' . sha1(uniqid(__METHOD__));
} |
Beta Was this translation helpful? Give feedback.
-
You can't, sorry |
Beta Was this translation helpful? Give feedback.
-
Placing the assignment after Brother, please show me how to output/unmute phpunit output while using paratest |
Beta Was this translation helpful? Give feedback.
-
That's very sad. The test only picks up 2 cores/processors, so the difference against phpunit is barely noticeable. Same with bumping it to 5 or whatever. In addition, I can't see what's going on. Only difference is lower memory consumption Noob question: I thought phpunit runs were going to fail after adding the |
Beta Was this translation helpful? Give feedback.
-
When I run the entire test suite, invocation fails when it reaches a particular folder containing tests that access the filesystem. The error message is thus:
Then one of the tests fails. If I run that test alone or the folder, everything passes. If I try with regular phpunit, everything passes.
Let me also use this opportunity to mention this impediment instead of opening a fresh issue. Perhaps, it'll aid me understand what's going on instead of working in the dark
Beta Was this translation helpful? Give feedback.
All reactions