Validation results comparison assertions (ValidationTestTrait::assertValidationResultsEqual) do not currently provide enough detail to be valuable or actionable, returning failure messages like this:
Failed asserting that actual size 2 matches expected size 1.
This issue will replace the above with this, for example:
Failed asserting that two arrays are identical.
--- Expected
+++ Actual
@@ @@
)
'summary' => 'There is not enough disk space to
create a staging area.'
)
+ 1 => Array &3 (
+ 'severity' => 1
+ 'messages' => Array &4 (
+ 0 => 'Xdebug is enabled, which may have a negative
performance impact on Package Manager and any modules that use it.'
+ )
+ 'summary' => null
+ )
)
Array diffs aren't pretty on the command line, but the important details are all there. The improvement in PhpStorm is stark:

Comments
Comment #2
tedbow@TravisCarden great idea! This has been a pain point for me
Comment #3
tedbowComment #4
tedbowactually, testing improvement could be done after we are in core, we would still be experimental so we don't have to be perfect. I do think we should do it now but I won't want to say this blocks core mvp
Comment #6
traviscarden commentedComment #7
tedbowI think this is good. This is going to save me a lot of time setting a breakpoint inside
\Drupal\Tests\package_manager\Traits\ValidationTestTrait::assertValidationResultsEqualComment #9
tedbowComment #11
tedbow