mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
chore: adjusts tests
This commit is contained in:
2
.github/workflows/tests.yml
vendored
2
.github/workflows/tests.yml
vendored
@ -28,7 +28,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php }}
|
php-version: ${{ matrix.php }}
|
||||||
tools: composer:v2
|
tools: composer:v2
|
||||||
coverage: xdebug
|
coverage: none
|
||||||
|
|
||||||
- name: Setup Problem Matches
|
- name: Setup Problem Matches
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@ -62,9 +62,9 @@
|
|||||||
↓ is marked as todo 3
|
↓ is marked as todo 3
|
||||||
↓ shouldBeMarkedAsTodo
|
↓ shouldBeMarkedAsTodo
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
@ -1708,4 +1708,4 @@
|
|||||||
WARN Tests\Visual\Version
|
WARN Tests\Visual\Version
|
||||||
- visual snapshot of help command output
|
- visual snapshot of help command output
|
||||||
|
|
||||||
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 32 skipped, 1153 passed (2749 assertions)
|
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 33 skipped, 1152 passed (2744 assertions)
|
||||||
@ -31,7 +31,7 @@ get('foo')->get('bar')->expect(true)->toBeTrue();
|
|||||||
get('foo')->expect(true)->toBeTrue();
|
get('foo')->expect(true)->toBeTrue();
|
||||||
|
|
||||||
describe('a "describe" group of tests', function () {
|
describe('a "describe" group of tests', function () {
|
||||||
get('foo'); // not incomplete because closure is created...
|
get('foo'); // not incomplete because closure is created...
|
||||||
get('foo')->get('bar')->expect(true)->toBeTrue();
|
get('foo')->get('bar')->expect(true)->toBeTrue();
|
||||||
get('foo')->expect(true)->toBeTrue();
|
get('foo')->expect(true)->toBeTrue();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -16,7 +16,7 @@ $run = function () {
|
|||||||
|
|
||||||
test('parallel', function () use ($run) {
|
test('parallel', function () use ($run) {
|
||||||
expect($run('--exclude-group=integration'))
|
expect($run('--exclude-group=integration'))
|
||||||
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 23 skipped, 1143 passed (2725 assertions)')
|
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 38 todos, 24 skipped, 1142 passed (2720 assertions)')
|
||||||
->toContain('Parallel: 3 processes');
|
->toContain('Parallel: 3 processes');
|
||||||
})->skipOnWindows();
|
})->skipOnWindows();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user