WordPress-Behat-Context icon indicating copy to clipboard operation
WordPress-Behat-Context copied to clipboard

Hello World Example

Open ChristianSingles opened this issue 11 years ago • 3 comments

I'm new to Behat. Which directory is "WordPressContext.php" put in?

ChristianSingles avatar Jan 16 '14 16:01 ChristianSingles

You should be able to place WordPressContext.php in the features/bootstrap directory, alongside FeatureContext.php. Then just modify the require accordingly.

philipjohn avatar Sep 02 '14 11:09 philipjohn

Any news on whether you might be able to implement something like this or even just more detailed installation steps in the README? I notice you require a couple of files from a PHPUnit folder but don't mention the context requiring that or how to install it in the Readme.

onishiweb avatar Jun 23 '15 10:06 onishiweb

If there was a big banner saying where to put it, then it wouldn't solve any problems because the user would then say "well now what do I do?" at which point you're basically writing an entire tutorial where 95% of it is generic non-WordPress specific Behat, and the last 5% is what's already said in this Git Repo. There's already good Behat docs out there that do that, we should link to them instead

tomjn avatar Jun 23 '15 23:06 tomjn