I am starting to write our tests with PHPUnit on Drupal 8, and I am not sure about the best practices with the phpunit.xml.dist file.
We separates the custom and the contrib modules using two directories in the /modules directory - /modules/custom and modules/contrib.
The original phpunit.xml.dist file contains the following line <directory>../modules/*/tests/src/Unit</directory>
so I had to add the
<directory>../modules/*/*/tests/src/Unit</directory>
directory.
I have another issue with sub-modules, our current structure is /modules/custom/main_custom_module/modules/sub_module, so I had to add another directory to the file (<directory>../modules/*/*/modules/*/tests/src/Unit</directory>
).
What is the best practice when it comes to overriding the phpunit.xml.dist file? should I remove the file from VC (e.g. git,svn..)?
<directory>../modules/*/*/tests/src/Unit</directory>
please file a core patch for this.