Codeception GraphWalker brings Model-based testing into Codeception.
It is inspired from GraphWalker and based on the library GraPHP.
- Codeception ≥ 3.0
- PHP ≥ 7.2
The extension can be installed using Composer
$ composer require edno/codeception-graphwalker
Add the GraphWalker format to the list of supported format into your suite configuration file (.suite.yml
):
formats:
- edno\Codeception\GraphWalker
In the configuration file, declare the graph algorithm class to be used and the scripts path :
graphwalker:
algorithm: Graphp\Algorithms\ShortestPath\Dijkstra
path: tests_/data/
Refer to graphp/algorithms for supported algorithms.