tests: clarifies dependencies

This commit is contained in:
Nuno Maduro
2023-03-17 02:06:26 +00:00
parent ae365324a8
commit f07c3a2480
3 changed files with 20 additions and 2 deletions

View File

@ -1,6 +1,7 @@
PASS Tests\Arch PASS Tests\Arch
✓ globals ✓ globals
✓ dependencies
✓ contracts ✓ contracts
PASS Tests\Features\AfterAll PASS Tests\Features\AfterAll
@ -942,4 +943,4 @@
PASS Tests\Visual\Version PASS Tests\Visual\Version
✓ visual snapshot of help command output ✓ visual snapshot of help command output
Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 18 skipped, 643 passed (1585 assertions) Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 18 skipped, 644 passed (1586 assertions)

View File

@ -7,6 +7,23 @@ test('globals')
->not->toBeUsed() ->not->toBeUsed()
->ignoring(Expectation::class); ->ignoring(Expectation::class);
test('dependencies')
->expect('Pest')
->toOnlyUse([
'dd',
'dump',
'expect',
'uses',
'Termwind',
'ParaTest',
'Pest\Arch',
'Pest\Plugin',
'NunoMaduro\Collision',
'Whoops',
'Symfony\Component\Console',
'Symfony\Component\Process',
])->ignoring(['Composer', 'PHPUnit', 'SebastianBergmann']);
test('contracts') test('contracts')
->expect('Pest\Contracts') ->expect('Pest\Contracts')
->toOnlyUse([ ->toOnlyUse([

View File

@ -15,6 +15,6 @@ $run = function () {
}; };
test('parallel', function () use ($run) { test('parallel', function () use ($run) {
expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 15 skipped, 634 passed (1572 assertions)') expect($run())->toContain('Tests: 2 deprecated, 3 warnings, 4 incomplete, 1 notice, 4 todos, 15 skipped, 635 passed (1573 assertions)')
->toContain('Parallel: 3 processes'); ->toContain('Parallel: 3 processes');
}); });