I have a small suite of unit and integration tests in PHPUnit, but now I want to add REST tests - which Codeception does great.
However, simply making Codeception run the
tests/unit folder doesn't make the cut. I guess it doesn't use/include the
tests/phpunit.xml config file I have in there, and I didn't find in the docs how to include it. Is it even possible?
Some of the reasons I recall the PHPUnit XML was needed in the first place:
- process isolation, so tests that needed a global mock wouldn't affect the others
- notice control: this is making me a bit confused, but I can see tons of notices (yep, legacy code) when running through Codeception that are not thrown by the PHPUnit runner. Some notices are expected in tests, but most of those don't. If I simply set
settings.error_level: "~E_ALL", it will break the tests looking for specific notices... I guess I would need some option to disable converting notices to exceptions in Codeception?
- backup globals: as I said, a legacy project