繁体   English   中英

我想在数据砖中使用pytest了解代码本身中每个测试用例的运行时间

[英]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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM