Today, I've upgraded one of my project (not yet public) that define a basic configuration template file codeception.yml as follow :
bootstrap: bootstrap.php
namespace: Tests
support_namespace: Support
paths:
tests: ../../tests
output: ../../tests/_output
data: ../../tests/Support/Data
support: ../../tests/Support
envs: ../../tests/_envs
actor_suffix: Tester
extensions:
enabled:
- Codeception\Extension\RunFailed
As my project is a PHP Package Template, there is nothing really concrete inside.
The current tests folder contents is :
tests/
├── bootstrap.php
└── _output
2 directories, 1 file
The bootstrap.php file is used only to load the Composer autoloader
When I run following command :
vendor/bin/codecept config:validate --config .github/linters/codeception.yml
It gave me :
Validating global config... Ok
------------------------------
Codeception Config:
Array
(
bootstrap => bootstrap.php
namespace => Tests
support_namespace => Support
paths => Array
(
tests => ../../tests
output => ../../tests/_output
data => ../../tests/Support/Data
support => ../../tests/Support
envs => ../../tests/_envs
)
actor_suffix => Tester
extensions => Array
(
enabled => Array
(
0 => Codeception\Extension\RunFailed
)
config => Array
(
)
commands => Array
(
)
)
include => Array
(
)
extends =>
suites => Array
(
)
modules => Array
(
)
groups => Array
(
)
settings => Array
(
colors => 1
bootstrap =>
strict_xml =>
lint => 1
backup_globals => 1
report_useless_tests =>
be_strict_about_changes_to_global_state =>
shuffle =>
)
coverage => Array
(
)
params => Array
(
)
gherkin => Array
(
)
)
Directories:
codecept_root_dir() /shared/backups/bartlett/harmony-package-template/.github/linters/
codecept_output_dir() /shared/backups/bartlett/harmony-package-template/.github/linters/../../tests/_output/
codecept_data_dir() /shared/backups/bartlett/harmony-package-template/.github/linters/../../tests/Support/Data/
Available suites:
Execute codecept config:validate [<suite>] to see config for a suite
Works as expected, but I'd like to have a warning if none suite defined.
Perharps something like
What do you think about it ?
Today, I've upgraded one of my project (not yet public) that define a basic configuration template file
codeception.ymlas follow :As my project is a PHP Package Template, there is nothing really concrete inside.
The current
testsfolder contents is :The
bootstrap.phpfile is used only to load the Composer autoloaderWhen I run following command :
It gave me :
Works as expected, but I'd like to have a warning if none suite defined.
Perharps something like
What do you think about it ?