handbook icon indicating copy to clipboard operation
handbook copied to clipboard

Create a dedicated doc for how to write Behat tests

Open danielbachhuber opened this issue 8 years ago • 1 comments
trafficstars

WP-CLI integration test documentation exists in two places:

  • https://make.wordpress.org/cli/handbook/pull-requests/#running-and-writing-tests
  • https://github.com/wp-cli/scaffold-package-command#wp-scaffold-package-tests

It would be more user-friendly to have an uberdoc for Behat tests. We could have two sections:

  1. Introduction - Getting started, and writing your first test
  2. Advanced usage - Now that you've written a test, here's how you write steps, etc.

Once this document exists, we can have both existing places link directly to it.

Related https://deliciousbrains.com/writing-functional-tests-wp-cli-packages/

danielbachhuber avatar Jan 27 '17 00:01 danielbachhuber

I think this is important! I'm new with Behat and I'm having trouble to add a custom plugin. I always get errors that class or functions used in the commands does not exist.

renatonascalves avatar Oct 14 '17 21:10 renatonascalves