Codeception

前端之家收集整理的这篇文章主要介绍了Codeception前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

如何安装

composer global require "codeception/codeception:*" 

创建验收测试

codecept generate:cept acceptance Welcome

运行测试

$ codecept run
Codeception PHP Testing Framework v2.2.4
Powered by PHPUnit 5.4.8 by Sebastian Bergmann and contributors.

Acceptance Tests (1) --------------------------------------------------------------------------------------------------------------------------------------------------------------
✔ WelcomeCept: 首页是否正常工作? (0.09s)

Functional Tests (0) --------------------------------------------------------------------------------------------------------------------------------------------------------------

Unit Tests (0) --------------------------------------------------------------------------------------------------------------------------------------------------------------------

Time: 305 ms,Memory: 8.00MB

OK (1 test,1 assertion)

猜你在找的程序笔记相关文章