We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b48189f commit fca6e56Copy full SHA for fca6e56
utils/generate-coverage.php
@@ -26,8 +26,13 @@
26
}
27
28
$filter = new Filter();
29
-$filter->includeDirectory( "{$root_folder}/includes" );
30
-$filter->includeFiles( array( "{$root_folder}/plugin.php" ) );
+// In wp-cli/wp-cli, all source code is in the "php" folder.
+$filter->includeDirectory( "{$root_folder}/php" );
31
+
32
+// In commands, all source code is in the "src" folder.
33
+$filter->includeDirectory( "{$root_folder}/src" );
34
+// There is also a "*-command.php" file.
35
+$filter->includeDirectory( $root_folder, '-command.php' );
36
37
$coverage = new CodeCoverage(
38
( new Selector() )->forLineCoverage( $filter ),
0 commit comments