There seems to be no way to list a few tests from the phpunit.xml file, but just run it. However, if you have some control over a more complete integration and test environment, where you can configure settings more precisely, you can have more than one phpunit configuration file and set one (or more) with more involved environments for setting the command line parameter --configuration <file> with a configuration that will do more. This at least ensures that the simplest configuration will work in the simplest way.
Two files can be called as you like if you run them on purpose, but it might be worth considering that the quick-launch file is called phpunit.xml by default, and the specially named and extended file is phpunit.xml.dist . The .dist file will automatically run by default if the original simple .xml does not exist . Another option is to have the phpunit.xml.dist file in the code repository, but then copy it to the phpunit.xml file with less "testuite", which itself is not checked in version control and is stored only locally. (it will probably also be marked as ignored in a .gitignore file or similar).
Alister Bulman Jun 14 '16 at 20:44 2016-06-14 20:44
source share