I wanted to write some functional tests. After exploring several tutorials, running this command (codecept run), example tests which were located in root_folder/tests should be work. However, in my case, it is not running anything. If I write some code in vendor/bin/tests/functional, console is giving me [RuntimeException] Call to undefined method FunctionalTester::amOnPage error or alternatively same error for all methods.
Thank you for your attention, but I have tried all your steps and no result( It is running 0 files for both types of tests.
I am using the basic template.
Codecept is running, but is not finding any tests…
In your first post you told us that you had your tests at vendor/bin/tests/functional, but by looking at your image, it seems that you have the “template” testes in the correct folder and they should be running, unless you’ve changed some configuration file.
Then enter the folder and execute vendor/bin/codecept run. If tests run without error, copy the tests folder from the newly created project, and run the codecept again in your project.
Sorry for the late response! However, your solution also did not work. Then, I tried other ways too. And find this: Example. I replaced bootstrap to run command and it worked) Thank you for your hints!