pytest-ordering:pytest插件以特定顺序运行测试

时间:2021-05-25 18:20:23
【文件属性】:
文件名称:pytest-ordering:pytest插件以特定顺序运行测试
文件大小:16KB
文件格式:ZIP
更新时间:2021-05-25 18:20:23
Python pytest排序 pytest插件以特定顺序运行测试 您是否曾经想过在进行任何其他测试之前轻松运行其中一项测试? 还是最后运行一些测试? 还是先执行一项测试,再执行另一项测试? 还是确保这组测试在另一组测试之后运行? 现在你可以。 安装方式: pip install pytest-ordering 这定义了一些可以在代码中使用的pytest标记。 例如,这: import pytest @pytest.mark.run(order=2) def test_foo(): assert True @pytest.mark.run(order=1) def test_bar(): assert True 产生以下输出: $ py.test test_foo.py -vv ============================= test session st
【文件预览】:
pytest-ordering-develop
----.travis.yml(409B)
----.coveragerc(20B)
----docs()
--------make.bat(7KB)
--------Makefile(7KB)
--------source()
----tests()
--------test_misc.py(266B)
--------test_ordering.py(5KB)
----tox.ini(627B)
----CHANGELOG(40B)
----LICENSE(1KB)
----AUTHORS(188B)
----setup.py(2KB)
----.gitignore(427B)
----README.md(1KB)
----pytest_ordering()
--------__init__.py(2KB)
--------_version.py(20B)

网友评论