为什么两个测试运行程序(nosetest / pytest与python setup.py测试)运行一组不同的测试?

时间:2019-06-18 15:38:45

标签: python pytest python-unittest test-runner

当我使用nosetestspytest运行单元测试时,运行了83个测试,并且没有一个意外失败:

80 passed, 2 skipped, 1 xfailed, 34 warnings in 280.63 seconds

但是,当我使用python setup.py test运行测试时,运行了75个测试,但其中一个意外失败:

Ran 75 tests in 228.599s

FAILED (errors=1, skipped=2, expected failures=1)

为什么两个测试运行程序运行不同的测试集? python setup.py test不仅运行较少的测试,而且显然还运行了至少nosetestspytest没有进行的一项测试(至少这是我的猜测,以解释为什么它在其他跑步者则没有。

我不确定如何分发最低工作/不工作示例,但this is the package in question

0 个答案:

没有答案