twifty / atom-phpunit-integrator

PHPUnit for the Atom editor
MIT License
1 stars 1 forks source link

Subdirectories #52

Open twifty opened 6 years ago

twifty commented 6 years ago

It's possible for a PHP project to be within a subdirectory of another project. This is especially true for frameworks like Symfony3 which use the concept of bundles.

Currently, the package expects a phpunit.xml to be in the root of a main project(s). Maybe a configuration option for a glob style path to search for these configurations would be a better idea.

There are a few issues though.

  1. The vendors directory will contain many configs. They should be excluded by default, but some mechanism of running those tests should be available.
  2. If tests within the vendors directory are enabled, it should be done so in a read only mode to avoid composer update complaining about dirty repositories.
  3. The Adapter will likely have problems with multiple src and tests directories.
  4. Not sure about the performance impact of watching the whole directory tree for changes.
  5. If each phpunit.xml is treated as its own Project, how will nested projects behave?