Add working interpolated dataset name

This commit is contained in:
Jordan Welch
2024-04-29 18:01:09 -05:00
parent 16125df77b
commit 8bbee3c1e5
4 changed files with 18 additions and 3 deletions

View File

@ -77,6 +77,8 @@
✓ eager registered wrapped datasets did the job right
✓ named datasets with dataset "one"
✓ named datasets with dataset "two"
✓ interpolated "one" named datasets
✓ interpolated "two" named datasets
✓ named datasets did the job right
✓ lazy named datasets with (Bar)
✓ it creates unique test case names with ('Name 1', Pest\Plugin Object (), true) #1
@ -1440,4 +1442,4 @@
WARN Tests\Visual\Version
- visual snapshot of help command output
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 21 skipped, 1030 passed (2515 assertions)
Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 21 skipped, 1032 passed (2517 assertions)

View File

@ -109,6 +109,13 @@ test('named datasets', function ($text) use ($state, $datasets) {
'two' => [2],
]);
test('interpolated :dataset named datasets', function ($text) {
expect(true)->toBeTrue();
})->with([
'one' => [1],
'two' => [2],
]);
test('named datasets did the job right', function () use ($state) {
expect($state->text)->toBe('121212121212');
});

View File

@ -16,7 +16,7 @@ $run = function () {
test('parallel', function () use ($run) {
expect($run('--exclude-group=integration'))
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 16 skipped, 1016 passed (2483 assertions)')
->toContain('Tests: 2 deprecated, 4 warnings, 5 incomplete, 2 notices, 13 todos, 16 skipped, 1018 passed (2485 assertions)')
->toContain('Parallel: 3 processes');
})->skipOnWindows();