The PHPUnit testengine expects that the unit tests are located
in a folder tests or Tests. In some setups this does not fit because tests
could also be located on different places. For example they could be stored
in a folter "tests/Unit/". Therefore there should be a configuration option
for the PHPUnit tests folders instead of setting them to a fixed value.
Details
Details
- Reviewers
epriestley - Group Reviewers
Blessed Reviewers - Required Signatures
L28 Phacility Individual Contributor License Agreement
Run arc unit --coverage in a setup where the unit test for the class
src/foo.php is stored in the folder tests/Unit/foo.php. There should be no
coverage report. Now add the configuration option to the .arcconfig
{ "phpunit_test_dirs" : [ "tests/Unit" ] }
and run arc unit --coverage again.
Diff Detail
Diff Detail
- Repository
- rARC Arcanist
- Branch
- configurationOptionForPhpunitTestDirs
- Lint
Lint Passed - Unit
Tests Passed - Build Status
Buildable 4075 Build 4088: [Placeholder Plan] Wait for 30 Seconds
Event Timeline
Comment Actions
That does also fix the problem that unit tests are not executed when doing an arc diff if they are not stored directly in the tests folder.
Comment Actions
This should wait for T5568 and rebuild on top of that.
Particularly, I do not want to add global configuration for a specific test engine.