mirror of
https://github.com/pestphp/pest.git
synced 2026-03-12 18:57:22 +01:00
Skips coverage
This commit is contained in:
@ -14,9 +14,9 @@
|
|||||||
✓ it gets executed before each test
|
✓ it gets executed before each test
|
||||||
✓ it gets executed before each test once again
|
✓ it gets executed before each test once again
|
||||||
|
|
||||||
PASS Tests\Features\Coverage
|
WARN Tests\Features\Coverage
|
||||||
✓ it has plugin
|
✓ it has plugin
|
||||||
✓ it adds coverage if --coverage exist
|
- it adds coverage if --coverage exist → Coverage is not available
|
||||||
✓ it adds coverage if --min exist
|
✓ it adds coverage if --min exist
|
||||||
✓ it generates coverage based on file input
|
✓ it generates coverage based on file input
|
||||||
|
|
||||||
@ -773,4 +773,4 @@
|
|||||||
WARN Tests\Visual\TeamCity
|
WARN Tests\Visual\TeamCity
|
||||||
- it is can successfully call all public methods → Not supported yet.
|
- it is can successfully call all public methods → Not supported yet.
|
||||||
|
|
||||||
Tests: 4 incomplete, 1 todo, 18 skipped, 515 passed (1294 assertions)
|
Tests: 4 incomplete, 1 todo, 19 skipped, 514 passed (1289 assertions)
|
||||||
|
|||||||
@ -17,7 +17,7 @@ it('adds coverage if --coverage exist', function () {
|
|||||||
$arguments = $plugin->handleArguments(['--coverage']);
|
$arguments = $plugin->handleArguments(['--coverage']);
|
||||||
expect($arguments)->toEqual(['--coverage-php', Coverage::getPath()]);
|
expect($arguments)->toEqual(['--coverage-php', Coverage::getPath()]);
|
||||||
expect($plugin->coverage)->toBeTrue();
|
expect($plugin->coverage)->toBeTrue();
|
||||||
});
|
})->skip(! \Pest\Support\Coverage::isAvailable() || ! in_array('coverage', xdebug_info('mode'), true), 'Coverage is not available');
|
||||||
|
|
||||||
it('adds coverage if --min exist', function () {
|
it('adds coverage if --min exist', function () {
|
||||||
$plugin = new CoveragePlugin(new ConsoleOutput());
|
$plugin = new CoveragePlugin(new ConsoleOutput());
|
||||||
|
|||||||
Reference in New Issue
Block a user