[wp-trac] [WordPress Trac] #62106: Plugin phpunit integration testing (following documented instructions) is broken

WordPress Trac noreply at wordpress.org
Tue Sep 24 19:09:49 UTC 2024


#62106: Plugin phpunit integration testing (following documented instructions) is
broken
------------------------------+-----------------------------
 Reporter:  bjorsch           |       Owner:  SergeyBiryukov
     Type:  defect (bug)      |      Status:  accepted
 Priority:  normal            |   Milestone:  6.7
Component:  Build/Test Tools  |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:                    |     Focuses:
------------------------------+-----------------------------
Changes (by SergeyBiryukov):

 * owner:  (none) => SergeyBiryukov
 * status:  new => accepted


Old description:

> https://core.trac.wordpress.org/changeset/59085 has broken plugin PHPUnit
> tests that are set up following the instructions at
> https://make.wordpress.org/cli/handbook/misc/plugin-unit-tests/
>
> Attempting to create a new plugin and run its tests following the
> instructions on that page now produces the following error message upon
> running `phpunit`:
>
>   The test suite requires the WordPress Importer plugin to be available
> in the `/data/plugins/` directory. See:
> https://make.wordpress.org/core/handbook/contribute/git/#unit-tests
>
> This check should presumably only be run when `WP_RUN_CORE_TESTS` is
> defined.

New description:

 [59085] has broken plugin PHPUnit tests that are set up following the
 instructions at https://make.wordpress.org/cli/handbook/misc/plugin-unit-
 tests/

 Attempting to create a new plugin and run its tests following the
 instructions on that page now produces the following error message upon
 running `phpunit`:

   The test suite requires the WordPress Importer plugin to be available in
 the `/data/plugins/` directory. See:
 https://make.wordpress.org/core/handbook/contribute/git/#unit-tests

 This check should presumably only be run when `WP_RUN_CORE_TESTS` is
 defined.

--

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


More information about the wp-trac mailing list