Support failed group data provider by ramzes642 · Pull Request #6793 · Codeception/Codeception · GitHub
Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions ext/RunFailed.php
3 changes: 2 additions & 1 deletion src/Codeception/Lib/GroupManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@ public function groupsForTest(Test $test): array
{
$filename = realpath($test->getFileName());
$testName = $test->getName();
$indexName = $test->getMetadata()->getIndexTextSuffix();
$groups = $test->getMetadata()->getGroups();

foreach ($this->testsInGroups as $group => $tests) {
Expand All @@ -154,7 +155,7 @@ public function groupsForTest(Test $test): array
$groups[] = $group;
}

if (str_starts_with($filename . ':' . $testName, $testPattern)) {
if (str_starts_with($filename . ':' . $testName . $indexName, $testPattern)) {
$groups[] = $group;
}
if (
Expand Down
12 changes: 11 additions & 1 deletion src/Codeception/Test/Metadata.php