wizacode / phpunit-slicer Goto Github PK
View Code? Open in Web Editor NEWSlice your PHPUnit test suite in chunks to run it in parallel
License: MIT License
Slice your PHPUnit test suite in chunks to run it in parallel
License: MIT License
The last slice tests count is wrong.
It say 44 tests
but it should be 15 tests
PHPUnit suite slicer, running slice 30/30 (44 tests: from #1276 to #1291)
Are there already any plans for compatibility with phpunit 10 ?
Since PHPUnit made this class final
, we should look for another way of hooking into its functionality.
I hacked together a quick fix for now by just copy-and-pasting the contents of the class, but there has to be a better way to achieve this.
When I use phpunit-slicer to slice my tests, these options are not working.
--group foo
--exclude-group bar
It would be great to slice tests of a given group an allow to slice tests that are not inside a given group
This is funny because all the other phpunit options I use are working.
If you exec slicer without slices options it works well
vendor/bin/phpunit-slicer --color --configuration configuration.xml
If you use the slices options, the setUpBeforeClass hook was not called and test fails
vendor/bin/phpunit-slicer --color --configuration configuration.xml --slices 1/1
php-slicer 1.0
phpunit/phpunit 7.5.20
<?php
use PHPUnit\Framework\TestCase;
class TestDummy extends TestCase
{
static $called = false;
public static function setUpBeforeClass()
{
parent::setUpBeforeClass();
self::$called = true;
}
public function testSetUpBeforeClassIsCalled()
{
$this->assertTrue(self::$called);
}
}
<?xml version="1.0" encoding="UTF-8"?>
<phpunit>
<testsuites>
<testsuite name="testsuite-dummy">
<directory>TestDummy.php</directory>
</testsuite>
</testsuites>
</phpunit>
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.