[wp-trac] [WordPress Trac] #46593: Fatal error when running unit tests without the build directory
WordPress Trac
noreply at wordpress.org
Thu Mar 21 19:27:41 UTC 2019
#46593: Fatal error when running unit tests without the build directory
------------------------------+--------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.2
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+--------------------
If you create a new checkout and attempt to run PHPUnit without running
`grunt build` first, you'll get a fatal error:
`Fatal error: require_once(): Failed opening required 'build//wp-includes
/class-phpmailer.php' in tests/phpunit/includes/mock-mailer.php on line 2`
There should be a proper error message with a recommendation to run `grunt
build`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/46593>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list