[英]Using pytest, is it possible for a unit test to know that it is being run with code coverage monitoring on?
[英]I want to know the run time of each test case in the code itself using pytest in data bricks
我正在使用数据砖笔记本。 我创建了一个 test_notebook.py,其中包含测试用例。 我开始使用下面的代码在另一个笔记本中执行
import pytest
pyargs = ['dbfs/FileStore/test_notebook.py']
pytest.main(pyargs)
我正在获得所有测试用例的运行时间。 如何在数据砖笔记本本身中查看每个测试用例的运行时?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.