[wp-trac] [WordPress Trac] #57844: Tests/Script Loader: Run build step in PHP Unit test actions.

WordPress Trac noreply at wordpress.org
Thu Mar 2 22:58:42 UTC 2023


#57844: Tests/Script Loader: Run build step in PHP Unit test actions.
------------------------------+---------------------
 Reporter:  peterwilsoncc     |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  6.2
Component:  Build/Test Tools  |     Version:
 Severity:  normal            |  Resolution:
 Keywords:  has-patch close   |     Focuses:
------------------------------+---------------------

Comment (by azaozz):

 I think this is "broken" on two different levels :(

 1. Scripty-loader is most of all a list of all available scripts and
 stylesheets. It is wrong to juggle what is registered when. All files that
 are in WP should always be registered. I know it's been getting messier
 lately, hoping it can get fixed in 6.3.

 2. Automated testing should always be done on the production files, i.e.
 in /build and without SCRIPT_DEBUG and probably without WP_DEBUG. If
 testing of the non-production files is needed, it can be done in another
 run of the test tools. Testing non-production files (in /src and/or with
 SCRIPT_DEBUG, etc.) is just wrong as it may miss several kinds of bugs and
 errors, sometimes severe (has happened in the past).

 We are very close to RC but the second point can still be fixed before the
 6.2 release.

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


More information about the wp-trac mailing list