collision
collision copied to clipboard
Configure Phpunit\Style "ignoreFilesIn"
I know this was rejected in https://github.com/nunomaduro/collision/pull/183 but can I ask this be reconsidered? I have several paths I'd like to exclude to help make the failure output more useful to me. It doesn't make sense to add these to this repo directly (which appears to be the only option right now).
Maybe there could be a different way to configure? tests/bootstrap.php maybe?
// tests/bootstrap.php
NunoMaduro\Collision\Adapters\Phpunit\Style::addToErrorIgnore([
'/vendor\/foo\/bar/',
'/vendor\/bar\/baz/',
]);
I think this would be better as mentioned as part of a PHP entry method, rather than as part of the phpunit.xml 👍🏻 It could be quite useful for things such as private app-specific exclusions.
Cool, I'll put together a PR.
I'm asking in which cases we want to show the line from vendor directory? So maybe all from vendor should be excluded by default? So we always get the line which we are calling.
I think is a good idea, yet needs to be something like:
NunoMaduro\Collision::ignoreSomething...