recca0120 / vscode-phpunit

The VS Code Test Explorer extension for PHPUnit
MIT License
130 stars 45 forks source link

Feature request: adding exclaimation mark to test with warnings to help spotting them #173

Open 8749236 opened 1 year ago

8749236 commented 1 year ago

A test case with warning.

<?php declare(strict_types=1);
use PHPUnit\Framework\TestCase;

class SampleTest extends TestCase
{
    public function testCase1()
    {
        $bytes .= 1;
        $this->assertEquals(
            1,
            1
        );
    }
}

Run the test will show this: image image

Expected behavior: When test result says there are issues or warnings, mark them with an exclaimation mark in yellow circle (or other symbols that you prefer). If you can fish out the stack trace, it will be even better. Example drawing:

image
sfsaccone commented 1 month ago

Indicating deprecations (from the PHPUnit options --display-deprecations and or --display-phpunit-deprecations) would also be helpful. Otherwise, after seeing all green checkmarks, I have to run phpunit on the command line to show these. Separate icons for warnings, deprecations, etc., would particularly helpful.