2017 © Pedro Peláez
 

library behat-utils

The `exozet/behat-utils` provides some traits for easier api testing with behat and mink.

image

exozet/behat-utils

The `exozet/behat-utils` provides some traits for easier api testing with behat and mink.

  • Friday, July 27, 2018
  • by DracoBlue
  • Repository
  • 10 Watchers
  • 0 Stars
  • 180 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 4 Versions
  • 42 % Grown

The README.md

exozet/behat-utils

Build Status, (*1)

The exozet/behat-utils provide some traits for easier testing of websites and web services using Behat and Mink., (*2)

Usage

$ composer require exozet/behat-utils

and add, (*3)

use \Exozet\Behat\Utils\Base\JsonApiSteps;

to your context, like this:, (*4)

class ServiceContext extends \Behat\MinkExtension\Context\MinkContext
{
    use \Exozet\Behat\Utils\Base\JsonApiSteps;
}

That's it!, (*5)

Traits

JsonApiSteps

The JsonApiSteps are helpful for testing JSON APIs., (*6)

WebsiteInteractionSteps

The WebsiteInteractionSteps simplify DOM-based interactions with websites., (*7)

SpinnedMinkSteps

The SpinnedMinkSteps allow calling default MinkContext steps while allowing a specified timeout., (*8)

ConditionSteps

The ConditionSteps offer steps that only continue the test execution under specific conditions, marking the tests as "Pending" otherwise., (*9)

HelpUtils

The HelpUtils offer helper functions that can be useful for defining own steps., (*10)

Development of behat-utils

If you want to develop on those utils, please use chromedriver and run it like this:, (*11)

$ chromedriver --whitelisted-ips='*'

Then use the embedded docker-compose.yml and run a php-cli like this:, (*12)

$ docker-compose run --rm php-cli
www-data $ bash setup-dev.sh 
www-data $ vendor/bin/behat -p local
www-data $ ./vendor/bin/phpunit --bootstrap vendor/autoload.php --testdox tests

LICENSE

The behat-utils is copyright by Exozet (http://exozet.com) and licensed under the terms of MIT License., (*13)

The Versions

27/07 2018

dev-add-website-interaction-steps

dev-add-website-interaction-steps

The `exozet/behat-utils` provides some traits for easier api testing with behat and mink.

  Sources   Download

MIT

The Requires

 

bdd behat mink gherkin

12/12 2017

dev-master

9999999-dev

The `exozet/behat-utils` provides some traits for easier api testing with behat and mink.

  Sources   Download

MIT

The Requires

 

bdd behat mink gherkin

12/12 2017

0.2.0

0.2.0.0

The `exozet/behat-utils` provides some traits for easier api testing with behat and mink.

  Sources   Download

MIT

The Requires

 

bdd behat mink gherkin

27/03 2017

0.1.0

0.1.0.0

The `exozet/behat-utils` provides some traits for easier api testing with behat and mink.

  Sources   Download

MIT

The Requires

 

bdd behat mink gherkin