edno / codeception-graphwalker
此包已被弃用且不再维护。未建议替代包。
基于模型的测试的 Codeception 扩展
0.5.0
2020-01-01 11:47 UTC
Requires
- php: >=7.2
- clue/graph: ^0.9
- codeception/codeception: >=3
- edno/graphyed: *
Requires (Dev)
Suggests
- graphp/algorithms: Compatible set of graph algorithms for Graphwalker
This package is auto-updated.
Last update: 2021-09-21 15:47:01 UTC
README
Codeception GraphWalker 将基于模型的测试引入 Codeception。
它受到了 GraphWalker 的启发,并基于库 GraPHP。
最低要求
- Codeception ≥ 3.0
- PHP ≥ 7.2
安装
可以使用 Composer 安装此扩展
$ composer require edno/codeception-graphwalker
配置
将 GraphWalker 格式添加到您的套件配置文件(.suite.yml
)中支持的格式列表
formats: - edno\Codeception\GraphWalker
在配置文件中,声明要使用的图 算法 类和脚本的 路径
graphwalker: algorithm: Graphp\Algorithms\ShortestPath\Dijkstra path: tests_/data/
有关支持的算法,请参阅 graphp/algorithms。