Answer the question
In order to leave comments, you need to log in
How to specify the path to a higher level in the yii2 module for codeception?
I have the following project structure
|-app
|-- config
|--- test.php
|-- Modules
|--- MyModule
|---- codeception.yml //Тут тесты для модуля MyModule
|---- tests
|-- tests //Тут тесты для приложения
|-- codeception.yml
app/codeception.yml
looks like this:actor: Tester
include:
- modules/*
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
bootstrap: _bootstrap.php
memory_limit: 1024M
colors: true
modules:
config:
Yii2:
configFile: 'config/test.php'
config/test.php
. app/modules/MyModule/codeception.yml
. Now he looks like this.namespace: test
actor: Tester
paths:
tests: tests
log: tests/_output
data: tests/_data
helpers: tests/_support
settings:
bootstrap: _bootstrap.php
memory_limit: 1024M
colors: true
modules:
config:
Yii2:
configFile: 'config/test.php'
app/modules/MyModule/config/codeception.yml
. configFile: '/../config/test.php'
The application config file does not exist: app/modules/MyModule/../config/test.php
codeception.yml
? codeception.yml
module files to inherit the Yii2 module from the global codeception.yml
one so as not to duplicate the code?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question