I have PHPUnit tests that use data providers as inputs, and by default these are outputted in a diff-like format (when running with php artisan test):
1) Tests\Feature\MyTest::test_feature with data set "12345678" ('12345678', '9999')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'9999'
+'0000'
...
2) Tests\Feature\MyTest::test_feature with data set "ABCDEFG" ('ABCDEFG', 'DEADBEEF')
Failed asserting that two strings are identical.
--- Expected
+++ Actual
@@ @@
-'DEADBEEF'
+'00000000'
I have thousands of these tests and they can result in a lot of failing values, and I often need to extract these values to compare them and analyse them elsewhere.
Does PHPUnit and/or Laravel Artisan provide any way to output only the expected and actual values?
artisan testcommand is doing (that command and its output are part of thenunomaduro/collisionpackage, FYI)