[wp-trac] [WordPress Trac] #62106: Plugin phpunit testing is broken

WordPress Trac noreply at wordpress.org
Tue Sep 24 18:50:05 UTC 2024


#62106: Plugin phpunit testing is broken
------------------------------+-----------------------------
 Reporter:  bjorsch           |      Owner:  (none)
     Type:  defect (bug)      |     Status:  new
 Priority:  normal            |  Milestone:  Awaiting Review
Component:  Build/Test Tools  |    Version:  trunk
 Severity:  normal            |   Keywords:
  Focuses:                    |
------------------------------+-----------------------------
 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.

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


More information about the wp-trac mailing list