You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we run the testMenuShows test, it also runs the testMenuShowsWhenLoggedIn test.
This is because in Codeception\Lib\GroupManager.php:groupsForTest we use str_starts_with and not any regex matching.
What are you trying to achieve?
In our CI, we split our test suite into n groups (currently 10) dynamically, and run them in parallel.
For example, chunk1.txt could look something like
Our issues is if we chunk some tests into seperate groups that have the same start of the test name, the test will be ran twice (or more times).
Take the example we have with a test name :
If we also have a test in a different group with a name of
When we run the
testMenuShows
test, it also runs thetestMenuShowsWhenLoggedIn
test.This is because in
Codeception\Lib\GroupManager.php:groupsForTest
we usestr_starts_with
and not any regex matching.https://github.com/Codeception/Codeception/blob/5.0/src/Codeception/Lib/GroupManager.php#L157
When running normally, we can use
^testMenuShows$
and I would like that functionality to be matched when filtering by groups.I will get a PR ready shortly if that helps.
Details
The text was updated successfully, but these errors were encountered: