[wp-trac] [WordPress Trac] #53363: Test tool and unit test improvements for 5.9
WordPress Trac
noreply at wordpress.org
Wed Sep 15 21:29:31 UTC 2021
#53363: Test tool and unit test improvements for 5.9
--------------------------------------+---------------------
Reporter: desrosj | Owner: (none)
Type: task (blessed) | Status: new
Priority: normal | Milestone: 5.9
Component: Build/Test Tools | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+---------------------
Comment (by hellofromTonya):
Whoopsie attached changeset [51817] to the wrong ticket. It belongs on
this ticket.
In [changeset:"51817" 51817]:
Build/Test Tools: Reworks `Tests_Option_Option::test_bad_option_names()`
into a data provider.
The existing tests were running multiple functions through a `foreach()`.
If any test failed, it would bail out and not test against the other
scenarios.
This commit:
- Moves the scenarios to a data provider with named data sets, i.e. to
ensure all scenarios are run and tested regardless if any fail.
- Splits each function under test into individual test methods.
- Adds a float scenario.
- Adds method visibility modifiers.
Follow-up to [25002].
Props jrf, hellofromTonya, pbearne.
See #53635.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/53363#comment:80>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list