Skip to content
This repository was archived by the owner on Mar 12, 2025. It is now read-only.

Commit 587c963

Browse files
fffilimonovDavertMik
authored andcommitted
Make working running test with particular data set by index (#3)
Example: codecept run tests/acceptance/FirstCest.php:frontpageWorks#0
1 parent 4de9efc commit 587c963

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/FilterTest.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ public function accept():bool
2020
}
2121

2222
$name = Descriptor::getTestSignature($test);
23+
$index = Descriptor::getTestDataSetIndex($test);
24+
25+
if (!is_null($index)) {
26+
$name .= " with data set #{$index}";
27+
}
28+
2329
$accepted = preg_match($this->filter, $name, $matches);
2430

2531
if ($accepted && isset($this->filterMax)) {

0 commit comments

Comments
 (0)