nose2-tests-recipes:高级使用nose2的食谱合集

时间:2021-06-04 12:03:43
【文件属性】:
文件名称:nose2-tests-recipes:高级使用nose2的食谱合集
文件大小:14KB
文件格式:ZIP
更新时间:2021-06-04 12:03:43
Python NOSE2 测试配方 关于如何使用nose2 高级功能的示例集合。 使用 attrib 插件过滤测试 这利用了插件。 该组装饰套在装饰测试的属性或多个组。 运行测试时,attrib 插件将在测试方法中查找这些属性。 例子 run_multiple_group_tests.sh run_single_group_tests.sh 同时运行测试 这利用了插件。 并发级别在传递给nose2 命令的N 标志或nose2 配置文件中设置。 请注意这个问题:如果并发程度大于测试数量,您的测试将挂起。 例如 N=5 但只有 4 个测试,你的测试运行永远不会退出。 请注意这个问题:如果有任何导入错误,当 mp 开启时您将无法看到它:日志被吞没。 您需要禁用插件进行调试。 例子 run_concurrent_tests.sh 参数化测试 这使用了插件。 在示例中,测试值存储在一
【文件预览】:
nose2-tests-recipes-master
----test()
--------test_with_concurrency.py(2KB)
--------__init__.py(0B)
--------test_with_groups.py(3KB)
--------test_with_data_providers.py(2KB)
----LICENSE-2.0.txt(11KB)
----src()
--------data_providers.py(2KB)
--------__init__.py(0B)
--------groups.py(2KB)
----unittest.cfg(30B)
----.gitignore(33B)
----nose2.cfg(243B)
----README.md(1KB)
----scripts()
--------run_multiple_group_tests.sh(2KB)
--------run_single_group_tests.sh(2KB)
--------run_parameterized_tests.sh(1KB)
--------run_concurrent_tests.sh(1KB)

网友评论