Monday, 30 January 2017

WordHat


I’m pleased to announce WordHat. WordHat is an integration layer between Behat, Mink, and WordPress, providing WordPress-specific functionality for common testing scenarios specific to WordPress sites. Behat is a behaviour-driven development framework for PHP, but it can also be used for automated, in-browser testing. This article on ThinkShout’s site gives a good introduction to Behat and Mink:
Behat tests are written in plain English phrases which are then combined into human-readable scenarios. This was inspired by Ruby’s Cucumber project and Gherkin syntax. This is probably the most appealing aspect of Behat. Most tests are understandable by anyone, whether you’re a developer, project manager, or business owner.
Behat is the core framework used for running tests. It is capable of testing several types of systems: terminal commands, REST APIs, etc. To enable Behat to test web pages, you need to add Mink and a browser emulator to the mix. Mink functions as the connector between Behat and browser emulators, and provides a consistent testing API.
So when you hear people talking about Behat, they’re usually talking about all three components: Behat, Mink,
Source: https://managewp.org/articles/14302/wordhat




source https://williechiu40.wordpress.com/2017/01/31/wordhat/

No comments:

Post a Comment