New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Calling script by class name (implied folder structure) #6089
Comments
The closest thing you can do is filter by test name - |
This is perfect and worked for me as expected i.e. executed exactly that specific test. Is this mentioned in the docs? I have checked Commands#Run but this use case was not mentioned. I can create a PR to update the docs if you feel this feature should be publicly documented. |
It is a variation of |
I am not sure if I follow the format. Here's what I did - https://github.com/alexkuc/codeception-issue-6089 Example 1 - running
Example 2 - running
Example 3 - running
Example 4 - running
In summary,
|
So after experimenting more I have reached a conclusion that you can pass part of the namespace and it executes the appropriate tests:
Tests taken from https://github.com/alexkuc/codeception-issue-6089 Docs for Run command do not mention that you can use namespace or part of it. Is it something missing from documentation? Or did I misunderstand something? |
Namespace is part of class name. There are some examples of using filters in https://codeception.com/docs/02-GettingStarted#Running-Tests When #6105 is merged, |
Currently, I have a nested structure of folders for my scripts, e.g.
Is it possible to call
test1
without specify the full path?Currently, if I call
codecept run <suite> test1
, I get error:But if I call via full path, it works fine:
Looking at Loader.php, I can see that it is looking for file path, instead of class names.
So I guess my scenario is unsupported?
The text was updated successfully, but these errors were encountered: