mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Fixes for parallel testing in github actions
This commit is contained in:
parent
89956c7ff8
commit
d837f956d7
4
tests/ci
4
tests/ci
@ -13,7 +13,7 @@ require_once 'vendor/autoload.php';
|
|||||||
* - Tests\Support\UuidTest::it_can_not_create_a_uuid_from_null
|
* - Tests\Support\UuidTest::it_can_not_create_a_uuid_from_null
|
||||||
* - ...
|
* - ...
|
||||||
*/
|
*/
|
||||||
$process = new \Symfony\Component\Process\Process([__DIR__ . '/vendor/bin/phpunit', '--list-tests']);
|
$process = new \Symfony\Component\Process\Process([__DIR__ . '/../vendor/bin/phpunit', '--list-tests']);
|
||||||
$process->mustRun();
|
$process->mustRun();
|
||||||
|
|
||||||
$tests = \Illuminate\Support\Str::of($process->getOutput())
|
$tests = \Illuminate\Support\Str::of($process->getOutput())
|
||||||
@ -35,7 +35,7 @@ $tests = \Illuminate\Support\Str::of($process->getOutput())
|
|||||||
* Run phpunit with a filter:
|
* Run phpunit with a filter:
|
||||||
* phpunit --filter 'TestClass|AnotherTestClass|...'
|
* phpunit --filter 'TestClass|AnotherTestClass|...'
|
||||||
*/
|
*/
|
||||||
$process = new \Symfony\Component\Process\Process(['./vendor/bin/phpunit', '--filter', $tests->join('|')], timeout: null);
|
$process = new \Symfony\Component\Process\Process(['/.././vendor/bin/phpunit', '--filter', $tests->join('|')], timeout: null);
|
||||||
$process->start();
|
$process->start();
|
||||||
|
|
||||||
// Make sure we have live data output
|
// Make sure we have live data output
|
||||||
|
Loading…
x
Reference in New Issue
Block a user