wp-cli-rename-db-prefix icon indicating copy to clipboard operation
wp-cli-rename-db-prefix copied to clipboard

Consider adding functional tests to this project

Open danielbachhuber opened this issue 8 years ago • 3 comments

Functional tests are an integral ingredient of highly-quality, maintainable commands. WP-CLI tries to make it as easy as possible to add functional tests to your package with its wp scaffold package-tests command:

https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-tests

I'd encourage you to consider adding functional tests to your package :) By starting your functional tests early on, it also makes it much easier to maintain your project over time.

danielbachhuber avatar Jun 05 '16 18:06 danielbachhuber

Yup, that would be a great improvment. I haven't tried out Behat yet either, so it'd be a good excuse to do that as well. Thanks :)

iandunn avatar Jul 19 '16 19:07 iandunn

It is very easy for wp-cli because all functions are ready you only have to write plain English.

szepeviktor avatar Nov 25 '16 00:11 szepeviktor

Moving code comments here

  • can be in tests dir intead of features?
  • prune unused stuff that scaffold package-tests added

szepeviktor avatar Dec 18 '16 22:12 szepeviktor