Run tests under a subfolder without using grep option in cli

My project structure is like the following:


I want to run all the tests under the test1 folder. How to do that with only mentioning the folder name? I don’t want to use --grep option or tags.

@fanik05 Assuming you run the tests in the pipeline, a good way of doing is to set an environment variable via the CI/CD job and then use it in the codecept.conf.js:

exports.config = {
  tests: `./${process.env.TEST_FOLDER}/**/*-test.js`