python - 可以捆绑毒物测试环境吗?
问题描述
是否可以将tox
测试环境捆绑在一起?想象一下,我有以下tox
配置:
[tox]
[testenv:foo-bar]
skip_install = True
commands = python -c "print('foo-bar')"
[testenv:foo-baz]
skip_install = True
commands = python -c "print('foo-baz')"
我想要的行为是调用tox -e foo
,这会自动调用foo-bar
and foo-baz
。我尝试使用以下depends
设置:
[testenv:foo]
depends = foo-bar, foo-baz
commands = python -c "print('foo')"
要么我误解了它的含义,要么它不起作用,因为这是我tox -e foo
的空输出setup.py
:
GLOB sdist-make: /home/user/testtox/setup.py
foo create: /home/user/testtox/.tox/foo
foo inst: /home/user/testtox/.tox/.tmp/package/1/UNKNOWN-0.0.0.zip
foo installed: UNKNOWN @ file:///home/user/testtox/.tox/.tmp/package/1/UNKNOWN-0.0.0.zip
foo run-test-pre: PYTHONHASHSEED='125196572'
foo run-test: commands[0] | python -c 'print('"'"'foo'"'"')'
foo
______________________________________ summary _______________________________________
foo: commands succeeded
congratulations :)
解决方案
推荐阅读
- php - 表单成功后重定向到不同的 URL
- php - 表单数据未写入 CSV
- dynamic-programming - 零序列
- linux - 如何使用 xargs 从我的 html 文件创建软链接?
- c++ - 指向类对象的 C++ 指针
- javascript - 如何使用 javascript 获取 @keyframes 当前变换值?
- google-apps-script - 将新的(最新的).csv 文件自动导入现有的 Google 电子表格
- php - Symfony 的唯一实体根本不起作用
- angular - Angular 7 Reactive Formarray cascading dropdown - 如何在 UI 表单中加载保存的数据
- python - Python OpenCV:霍夫变换没有检测到明显的线条