handbook icon indicating copy to clipboard operation
handbook copied to clipboard

Rename plugin unit tests to integration tests?

Open dingo-d opened this issue 7 years ago • 2 comments

The title of the chapter Plugin Unit Tests is a bit misleading.

Unit tests are usually done when adding/modifying some core feature/component, and plugins work within WordPress so the tests in the plugin are in fact integration tests.

The chapter title should be renamed to Plugin Integration Tests.

dingo-d avatar Aug 16 '18 11:08 dingo-d

I agree, the entire scaffolding feature of tacking the WP Core unit tests onto plugins has lead to a lot of confusion.

I have a few things I want to change with the scaffolding in the near future, and will certainly address this as well.

schlessera avatar Aug 25 '18 10:08 schlessera

https://github.com/wp-cli/handbook/pull/357

There is another mention of Unit tests at the bottom. The file name has unit rather than integration. Should these change as well?

spicecadet avatar Jun 04 '20 14:06 spicecadet