[wp-trac] [WordPress Trac] #60227: HTML API: Add external test suite

WordPress Trac noreply at wordpress.org
Tue Feb 27 06:35:35 UTC 2024


#60227: HTML API: Add external test suite
--------------------------------------+---------------------
 Reporter:  jonsurrell                |       Owner:  (none)
     Type:  task (blessed)            |      Status:  new
 Priority:  normal                    |   Milestone:  6.5
Component:  Build/Test Tools          |     Version:
 Severity:  normal                    |  Resolution:
 Keywords:  has-patch has-unit-tests  |     Focuses:
--------------------------------------+---------------------

Comment (by costdev):

 > What would folks think of setting these as not being loaded and then run
 separately as is done with the HTTP remote and ajax tests.

 Yep, we can just add `html-api` to `phpunit.groups.exclude` like
 [https://github.com/WordPress/wordpress-
 develop/blob/trunk/phpunit.xml.dist#L26 the other excluded groups], and
 work out something for the GitHub CI jobs.

 Even if the group is only run in certain circumstances, I also dropped
 [https://github.com/WordPress/wordpress-
 develop/pull/5794/files#r1503695326 a comment on the PR] which could, for
 the next few months as mentioned in an earlier comment, also silently skip
 certain datasets until further progress is made.

 Overall, an excluded group and something akin to my comment on the PR
 could:
 - reduce the test results output
 - avoid a "scan through the thousands of tests and skip ones we know can't
 run", which no one wants to see happen
 - minimize "bloat" in the test/data provider methods

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60227#comment:32>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list