Download the PHP package openeuropa/behat-transformation-context without Composer
On this page you can find all versions of the php package openeuropa/behat-transformation-context. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download openeuropa/behat-transformation-context
More information about openeuropa/behat-transformation-context
Files in openeuropa/behat-transformation-context
Package behat-transformation-context
Short Description Behat package to transform human readable labels into selectors or page paths.
License EUPL-1.2
Homepage https://github.com/openeuropa/behat-transformation-context
Informations about the package behat-transformation-context
Behat Transformation Context
This package provides a Behat context allowing to transform human readable labels to selectors or page paths. Such functionality improves the readability of the Behat tests.
Installation
Configuration
Add the extension and context to your test suite in behat.yml
:
Usage
We can use steps such as these:
Development
Running tests locally:
Using Docker Compose
The setup procedure described above can be sensitively simplified by using Docker Compose.
Requirements:
Run:
Then:
GrumPHP tasks will be ran at every commit, if you with to run them without performing a commit use the following command:
If you want to simulate a commit message use:
Step debugging
To enable step debugging from the command line, pass the XDEBUG_SESSION
environment variable with any value to
the container:
Please note that, starting from XDebug 3, a connection error message will be outputted in the console if the variable is set but your client is not listening for debugging connections. The error message will cause false negatives for PHPUnit tests.
To initiate step debugging from the browser, set the correct cookie using a browser extension or a bookmarklet like the ones generated at https://www.jetbrains.com/phpstorm/marklets/.