tests: makes incomplete tests success

This commit is contained in:
Nuno Maduro
2020-06-21 17:40:41 +02:00
parent 5d58d58f71
commit 211f5c2433
2 changed files with 3 additions and 10 deletions

View File

@ -49,15 +49,13 @@
✓ it creates unique test case names with ('Name 1', Pest\Plugin Object (), true) #3 ✓ it creates unique test case names with ('Name 1', Pest\Plugin Object (), true) #3
✓ it creates unique test case names - count ✓ it creates unique test case names - count
WARN Tests\Features\Depends PASS Tests\Features\Depends
✓ first ✓ first
✓ second ✓ second
✓ depends ✓ depends
✓ depends with ...params ✓ depends with ...params
✓ depends with defined arguments ✓ depends with defined arguments
✓ depends run test only once ✓ depends run test only once
s incomplete → incomplete
w depends on incomplete → This test depends on "P\Tests\Features\Depends::incomplete" which does not exist.
PASS Tests\Features\Exceptions PASS Tests\Features\Exceptions
✓ it gives access the the underlying expectException ✓ it gives access the the underlying expectException
@ -161,6 +159,5 @@
WARN Tests\Visual\Success WARN Tests\Visual\Success
s visual snapshot of test suite on success s visual snapshot of test suite on success
Tests: 1 warnings, 7 skipped, 85 passed Tests: 6 skipped, 92 passed
Time: 2.65s Time: 3.40s

View File

@ -38,7 +38,3 @@ test('depends with defined arguments', function (string $first, string $second)
test('depends run test only once', function () use (&$runCounter) { test('depends run test only once', function () use (&$runCounter) {
assertEquals(2, $runCounter); assertEquals(2, $runCounter);
})->depends('first', 'second'); })->depends('first', 'second');
test('incomplete')->skip('incomplete');
test('depends on incomplete')->depends('incomplete')->doesNotPerformAssertions();