Breadcrumb-NavXT icon indicating copy to clipboard operation
Breadcrumb-NavXT copied to clipboard

Migrate to WP CLI and PHPUnit based Unit Tests

Open mtekk opened this issue 11 years ago • 8 comments

Rather than the current set of internal unit tests that can't be easily distributed, a new set using PHPUnit and WP CLI needs to be build and shipped with the plugin. See http://wp-cli.org/blog/plugin-unit-tests.html

mtekk avatar Oct 14 '13 01:10 mtekk

Unfortunately, the groundwork for this will be all that gets into 5.1.0. Punting to 5.2.0

mtekk avatar Mar 02 '14 23:03 mtekk

This will be an ongoing effort, not a blocking/blessed objective for 5.2

mtekk avatar Jul 31 '14 02:07 mtekk

This will be a long term thing, but the infrastructure is now setup to start doing this

mtekk avatar Sep 25 '15 05:09 mtekk

As of now the uninstaller and the bcn_breadcrumb class have tests. Need to add tests for the filters in bcn_breadcrumb. Then, it's off to implementing tests for bcn_breadcrumb_trail. adminKit and the admin stuff with nonces will be the most difficult to write tests for due to having to deal with the nonces. This is a good enough of a start for 5.3.0, will move the issue to 5.4.0.

mtekk avatar Sep 26 '15 02:09 mtekk

Calling this good for 5.4, bumping it to the next release as it's an ongoing effort.

mtekk avatar Jan 31 '16 23:01 mtekk

Calling this good for 5.5, bumping it to the next release as it's an ongoing effort.

mtekk avatar Jul 17 '16 03:07 mtekk

We're good for 5.6, bumping it to the next release as it's an ongoing effort.

mtekk avatar Nov 27 '16 22:11 mtekk

Just migrated to using Yoast\PHPUnit-Polyfills to avoid some silly PHPUnit API craziness

mtekk avatar Apr 01 '22 04:04 mtekk