Skip to content

Commit

Permalink
Add a more useful comment
Browse files Browse the repository at this point in the history
Co-authored-by: Dennis Snell <[email protected]>
  • Loading branch information
adamziel and dmsnell committed Dec 20, 2022
1 parent 30c26b9 commit 7be8a32
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions phpunit/FuzzyTestSuiteLoader.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,21 @@
<?php
/**
* This file is derived from the PHPUnit project and customized for the
* needs of the Gutenberg project.
* Implements a custom PHPUnit loader so that it's possible to run WordPress
* tests (with their non-standard filenames) without further modifications.
*
* WordPress test files follow lowercase-kebab-casing conventions:
* phpunit/html/wp-html-tag-processor-test.php
*
* PHPUnit test files follow Title_Snake_Casing conventions:
* phpunit/html/WP_HTML_Tag_Processor_Test.php
*
* This makes it difficult to run the WordPress files from the CLI with
* PHPUnit. The loader in this module lets PHPUnit find and use both
* kinds of test file naming schemes.
*
* The code mostly derives from the PHPUnit project
* @see {https://github.com/sebastianbergmann/phpunit/blob/db39a78860c36cef3e04d0e4b9f2253e968f0c88/src/Runner/TestSuiteLoader.php}
*
* @package gutenberg
*/

Expand Down

1 comment on commit 7be8a32

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Flaky tests detected.
Some tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information.

🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/3739697945
📝 Reported issues:

Please sign in to comment.