Run test cases for yii module

I have a separate repository for my modules, which I have linked through the composer.json file. For example:
“psr-4”: {
“app\modules\”: [“…/repo-web-module”]
}

Now, I would like to run the unit test cases for my modules, which I have written inside each module.

I have already included my modules in the global codeception.yml file.

However, the issue I am facing is that each module exists in a separate repository which does not contain the Yii framework, and therefore does not have its own vendor folder. When I attempt to run the test cases, I receive the following error:
“Class ‘Yii’ not found.”

In addition, Codeception throws the error:
“Output path is not defined by key ‘paths: output’.”

In codeception.yml file inside the module already have output path
paths:
tests: tests
output: tests/_output
data: tests/_data
helpers: tests/_support