I'm not sure this is about PhpStorm, but maybe someone here could help.
We're just beginning to use unit testing with PHPUnit / PhpStorm, and we're facing an issue.
Our test classes are next to tested classes in our file system.
In my example, I have lib/Chrono.php and lib/ChronoTest.php
But we didn't manage to exclude test files from coverage metrics for data displayed in the Project view.
So the test files are counted in total files in each folder, which displays 50% coverage while 100% are covered.
This is a real issue for us, because we aim 100% file coverage and wanted to rely on PhpStorm to get this information.
Here is my PHPUnit xml file
<phpunit bootstrap="CONFIG.php" colors="true">
<testsuite name="Test Laurent conf Fred">
<log type="coverage-html" target="./codeCoverage" charset="UTF-8"
<log type="coverage-clover" target="./codeCoverage/codeCoverage.xml"/>
<log type="metrics-xml" target="./metrics/metrics.xml"/>
<log type="test-xml" target="./testResults/logfile.xml" logIncompleteSkipped="false"/>
I tried many combinations with excludes, blacklists but nothing worked.
Any idea ? Thanks a lot ;)