iandunn / wp-cli-rename-db-prefix

A WP-CLI command to rename WordPress' database prefix
107 stars 18 forks source link

Consider adding functional tests to this project #1

Open danielbachhuber opened 8 years ago

danielbachhuber commented 8 years ago

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.

iandunn commented 8 years ago

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 :)

szepeviktor commented 7 years ago

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

szepeviktor commented 7 years ago

Moving code comments here