python Nose 测试 : is it possible to run a subset of tests

标签 python testing

我正在使用 nose 测试一些使用 Flask 编写的 REST API。我也在使用脚本管理器。每次我执行 manage test 时,它都会运行所有测试。这对 CI 来说是可以的,但如果你想修复某些东西,那就不理想了。在 golang 中,有一种方法可以通过提供正则表达式来指定要运行的测试子集。 Nose 里有没有类似的东西?

最佳答案

你可以跑 nosetests -m REGEX 如 Nose 中指定的options page .

关于 python Nose 测试 : is it possible to run a subset of tests,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31132154/

相关文章:

unit-testing - Clojure 测试框架的优势?

java - Mockito 的验证和参数捕获器的工作

python - 无法在 python 中解码 AWS Session Manager websocket 输出

testing - 使用突变测试查找代码中的错误

python - 如何记住 python 3 中的 tkinter 窗口位置?

python - 如何在 Python 中使用基数排序按字母顺序对(很长)对象列表进行排序?

python - 如何在 Python 中模拟已挂载的分区

testing - Behat 从测试步骤传递一个值

Python:在任意维度中使用冒号运算符索引数组

python - 如何使用ListProperty(数字列表中的项目必须都是Key实例)