mirror of
https://github.com/pestphp/pest.git
synced 2026-03-06 07:47:22 +01:00
Adds support for incompleted tests
This commit is contained in:
@ -108,6 +108,15 @@
|
||||
✓ it proxies calls to object
|
||||
✓ it is capable doing multiple assertions
|
||||
|
||||
WARN Tests\Features\Incompleted
|
||||
… it is incompleted
|
||||
… it is incompleted even with method calls like skip
|
||||
… it is incompleted even with method calls like group
|
||||
✓ it is not incompleted because of expect
|
||||
✓ it is not incompleted because of assert
|
||||
! it is not incompleted because of test with no assertions → This test did not perform any assertions /Users/nunomaduro/code/pestphp/pest/src/Factories/TestCaseFactory.php(221) : eval()'d code:4
|
||||
✓ it is not incompleted because of test with assertions
|
||||
|
||||
PASS Tests\Features\It
|
||||
✓ it is a test
|
||||
✓ it is a higher order message test
|
||||
@ -266,5 +275,5 @@
|
||||
✓ it is a test
|
||||
✓ it uses correct parent class
|
||||
|
||||
Tests: 7 skipped, 164 passed
|
||||
Tests: 1 risked, 3 incompleted, 7 skipped, 167 passed
|
||||
|
||||
19
tests/Features/Incompleted.php
Normal file
19
tests/Features/Incompleted.php
Normal file
@ -0,0 +1,19 @@
|
||||
<?php
|
||||
|
||||
it('is incompleted');
|
||||
|
||||
it('is incompleted even with method calls like skip')->skip(false);
|
||||
|
||||
it('is incompleted even with method calls like group')->group('wtv');
|
||||
|
||||
it('is not incompleted because of expect')->expect(true)->toBeTrue();
|
||||
|
||||
it('is not incompleted because of assert')->assertTrue(true);
|
||||
|
||||
it('is not incompleted because of test with no assertions', function () {
|
||||
// ...
|
||||
});
|
||||
|
||||
it('is not incompleted because of test with assertions', function () {
|
||||
expect(true)->toBeTrue();
|
||||
});
|
||||
Reference in New Issue
Block a user