[wp-trac] [WordPress Trac] #57841: Test tool and unit test improvements for 6.3
WordPress Trac
noreply at wordpress.org
Tue Mar 21 13:52:44 UTC 2023
#57841: Test tool and unit test improvements for 6.3
--------------------------------------+---------------------
Reporter: hellofromTonya | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 6.3
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by hellofromTonya):
In [changeset:"55572" 55572]:
{{{
#!CommitTicketReference repository="" revision="55572"
Tests: Rename test class and improve tests for wp_get_global_stylesheet().
Changes include:
* Renames the test class to be compliant with test coding standards.
* Converts the test class to extend `WP_Theme_UnitTestCase` to reuse test
fixtures.
* Implements data providers to encapsulate datasets and reduce code
repetition.
* Adds a `@covers` annotation.
* Improves assertion messages to help with diagnosing failed tests.
Follow-up to [55567], [55148], [52682], [53916], [52675-52677].
Props costdev, hellofromTonya.
See #57841, #57958.
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/57841#comment:10>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list