pytest-bdd:py.test运行程序的BDD库

时间:2021-05-13 00:52:05
【文件属性】:
文件名称:pytest-bdd:py.test运行程序的BDD库
文件大小:86KB
文件格式:ZIP
更新时间:2021-05-13 00:52:05
Python pytest运行程序的BDD库 pytest-bdd实现了Gherkin语言的子集,以实现自动化项目需求测试并促进行为驱动的开发。 与许多其他BDD工具不同,它不需要单独的运行程序,并且可以从pytest的功能和灵活性中受益。 它可以统一单元测试和功能测试,减轻持续集成服务器配置的负担,并允许重用测试设置。 为单元测试编写的Pytest固定装置可以通过依赖项注入重新用于功能步骤中提到的设置和操作。 这允许对需求进行真正的BDD正当说明,而无需维护任何包含Gherkin命令性声明的副作用的上下文对象。 安装pytest-bdd pip install pytest-bdd pytest的最低要求版本是4.3。 例子 博客托管软件的示例测试如下所示。 注意, 用于获取浏览器固定装置。 publish_article.feature: Feature : Blog A sit
【文件预览】:
pytest-bdd-master
----MANIFEST.in(80B)
----README.rst(38KB)
----.coveragerc(59B)
----pytest_bdd()
--------cucumber_json.py(6KB)
--------parser.py(15KB)
--------utils.py(1KB)
--------parsers.py(3KB)
--------reporting.py(6KB)
--------templates()
--------types.py(405B)
--------feature.py(3KB)
--------scripts.py(2KB)
--------__init__.py(249B)
--------generation.py(6KB)
--------steps.py(5KB)
--------hooks.py(1KB)
--------gherkin_terminal_reporter.py(5KB)
--------scenario.py(11KB)
--------exceptions.py(1KB)
--------plugin.py(2KB)
----pyproject.toml(73B)
----docs()
--------conf.py(8KB)
--------Makefile(5KB)
--------index.rst(179B)
----requirements-testing.txt(10B)
----AUTHORS.rst(1KB)
----pytest.ini(85B)
----CHANGES.rst(10KB)
----.github()
--------workflows()
----tests()
--------utils.py(1018B)
--------conftest.py(694B)
--------library()
--------feature()
--------__init__.py(0B)
--------generation()
--------args()
--------scripts()
--------steps()
--------test_hooks.py(2KB)
----tox.ini(1KB)
----setup.cfg(1KB)
----setup.py(38B)
----.gitignore(453B)
----Makefile(412B)
----.editorconfig(306B)
----LICENSE.txt(1KB)
----.pre-commit-config.yaml(525B)

网友评论

  • 用户下载后在一定时间内未进行评价,系统默认好评。