atoum / vw-extension
1.0
2015-10-07 23:01 UTC
Requires
- atoum/atoum: <3.0
This package is auto-updated.
Last update: 2024-08-29 04:30:59 UTC
README
vw-extension使得atoum失败的测试案例在持续集成工具中成功。
受到phpunit-vw的启发。
示例
以下是在不同环境中运行扩展测试的结果
namespace mageekguy\atoum\vw\tests\units; use mageekguy\atoum; class extension extends atoum\test { private $noxEmissions = 12000; private $legalLimit = 300; public function testEnvironmentalImpactCompliance() { $this->integer($this->noxEmissions)->isLessThan($this->legalLimit); } }
安装它
使用composer安装扩展
composer require --dev atoum/vw-extension:~1.0
使用atoum配置文件启用扩展
<?php // .atoum.php require_once __DIR__ . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php'; $runner->addExtension(new \mageekguy\atoum\vw\extension($script));
CI工具检测
目前检测到
- TravisCI
- Appveyor
- Bamboo
- Buildkite
- CircleCI
- CodeShip
- GitlabCI
- Go CD
- Hudson
- Jenkins
- PHPCI
- TeamCity
使用类似'BUILD_ID'的环境变量检测的其他CI工具也会被检测到。
许可
vw-extension在MIT许可下可用。