PHPUnit打印测试执行时间 [英] PHPUnit print tests execution time

查看:184
本文介绍了PHPUnit打印测试执行时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用PHPUnit打印每个测试的执行时间?

is there a way to print the execution time of each test with PHPUnit?

推荐答案

您可以实现自己的测试运行程序,例如通过扩展PHPUnit_TextUI_TestRunner并使其收集和打印运行时间.

You can implement your own test runner, for example by extending PHPUnit_TextUI_TestRunner and make it collect and print run times.

这篇关于PHPUnit打印测试执行时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆