没有合适的资源?快使用搜索试试~ 我知道了~
hammett:快速的python测试运行程序,与pytest的子集兼容
共57个文件
py:41个
xml:5个
rst:3个
需积分: 9 0 下载量 44 浏览量
2021-05-10
09:32:29
上传
评论
收藏 45KB ZIP 举报
温馨提示
哈梅特 Hammett是一个快速的python测试运行程序,旨在与大多数人使用的pytest部分兼容(除非与快速目标冲突)。 如果您更完全适应Hammett,它还添加了一些功能,这些功能可以极大地改善您的测试体验。 哈梅特快多少? 这取决于测试套件的速度。 Hammett不是魔术,它只是一个非常关心性能的人打造的跑步者。 它旨在使每个测试的启动开销和最小开销最小。 我已经编写了一些用于衡量此开销的基准,您可以在 ; DR,如果您的测试套件在pytest中小于1s,则可以看到VAST的改进,如果是分钟或小时,而不是很多)。 一个真实的示例正在运行tri.declarative测试套件: pytest:〜860毫秒 hammett:〜160毫秒 或iommi: pytest:〜10 s 哈米特:〜8 s 但是,即使您的测试套件很大且很慢,但如果您经常只运行一个文件或一个测试,您仍
资源推荐
资源详情
资源评论
收起资源包目录
hammett-master.zip (57个子文件)
hammett-master
MANIFEST.in 141B
README.rst 3KB
hammett
colors.py 101B
fixtures.py 1KB
fixtures_support.py 7KB
__init__.py 22KB
__main__.py 47B
mark.py 0B
impl.py 21KB
HISTORY.rst 3KB
requirements.txt 11B
.idea
misc.xml 403B
dictionaries
boxed.xml 189B
hammet.iml 807B
inspectionProfiles
profiles_settings.xml 174B
modules.xml 264B
.gitignore 28B
vcs.xml 180B
AUTHORS.rst 67B
.travis.yml 782B
LICENSE 1KB
setup.py 3KB
Makefile 1KB
tests
test_misc.py 2KB
test_di.py 1KB
suites
suite_2_with_warn_didnt_warn
asserts.py 74B
tests
test_foo.py 81B
suite_2_with_warn
asserts.py 74B
tests
test_foo.py 266B
suite_1_one_fail
asserts.py 74B
tests
test_foo.py 33B
suite_4_capture_logs
asserts.py 74B
tests
test_foo.py 159B
suite_3_parametrize
asserts.py 74B
tests
test_foo.py 136B
suite_2_skip
asserts.py 74B
tests
test_foo.py 67B
suite_1_no_tests_failure
asserts.py 22B
suite_1_test_directory
asserts.py 74B
test
test_foo.py 25B
suite_2_module_marker_skip
asserts.py 74B
tests
test_foo.py 80B
suite_3_fixture
asserts.py 74B
tests
test_foo.py 214B
suite_1_one_success
asserts.py 74B
tests
test_foo.py 25B
suite_2_with_raises
asserts.py 74B
tests
test_foo.py 139B
suite_2_with_raises_didnt_raise
asserts.py 74B
tests
test_foo.py 90B
suite_2_with_raises_match
asserts.py 74B
tests
test_foo.py 123B
suite_2_with_raises_not_match
asserts.py 74B
tests
test_foo.py 117B
test_suites.py 1KB
test_analyze_assert.py 4KB
.gitignore 2KB
共 57 条
- 1
资源评论
马克维
- 粉丝: 27
- 资源: 4644
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功