[wp-trac] [WordPress Trac] #43055: Reorganize Core JS / introduce build step
WordPress Trac
noreply at wordpress.org
Fri Apr 13 05:56:25 UTC 2018
#43055: Reorganize Core JS / introduce build step
------------------------------+-------------------------
Reporter: omarreiss | Owner: (none)
Type: enhancement | Status: new
Priority: normal | Milestone: 5.0
Component: Build/Test Tools | Version: trunk
Severity: normal | Resolution:
Keywords: dev-feedback | Focuses: javascript
------------------------------+-------------------------
Comment (by omarreiss):
Ok, left the engines untouched. Fixed the PHP unit tests and an issue
where I forgot to commit jQuery.color back. Also rebased on master again,
which was fun...
All tests (qunit and phpunit) now also need to load code from `build`. I
think this is warranted because most tests are in fact integration tests
and thus assume to be run in a fully functional system. As we modularize
and isolate code in the future, we can consider creating true unit tests
which include code straight from source. Maybe I should create a ticket
for context.
If you try to run `phpunit` with `src` as `ABSPATH`, the unit tests exit
with instructions on how to fix so there should be a fairly
straightforward path forward.
I think this iteration is as good as complete. Happy we have split out
some next steps in the other tickets!
--
Ticket URL: <https://core.trac.wordpress.org/ticket/43055#comment:62>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list