Python
Java
PHP
IOS
Android
Nodejs
JavaScript
Html5
Windows
Ubuntu
Linux
Python 单元测试:Nose 失败时重试?
我有一个随机失败的测试 我想让它在发送错误消息之前重试多次 我将 python 与 Nose 一起使用 我写了以下内容 但不幸的是 即使使用 try except 处理 当第一次尝试测试失败时 Nose 也会返回错误 def test so
python
Nose
使用鼻子获取设置中当前测试的名称
我目前正在使用鼻子编写一些功能测试 我正在测试的库操作目录结构 为了获得可重现的结果 我存储了一个测试目录结构的模板 并在执行测试之前创建该模板的副本 我在测试中执行此操作 setup功能 这确保了我在测试开始时始终具有明确定义的状态 现在
python
unittesting
Testing
Nose
nosetests
处理 Python 行为测试框架中的异常
我一直在考虑从鼻子转向行为测试 摩卡 柴等已经宠坏了我 到目前为止一切都很好 但除了以下之外 我似乎无法找出任何测试异常的方法 then It throws a KeyError exception def step impl contex
python
BDD
Nose
nosetests
pythonbehave
通过鼻子测试检查某个函数是否发出警告
我正在使用编写单元测试nose http somethingaboutorange com mrl projects nose 0 11 2 我想检查函数是否引发警告 该函数使用warnings warn 这是很容易就能做到的事情吗 def
python
unittesting
warnings
Nose
更改鼻子测试的详细报告格式
我正在使用运行我的测试nosetests在详细模式下 test cache region tests test sysutil TestCachedMethodDecorator ok test expire tests test sysu
python
Nose
nosetests
支持非致命故障的 Python 测试框架
我正在评估自动化系统测试的 测试框架 到目前为止我正在寻找一个Python框架 在 py test 或鼻子中 我看不到类似我从谷歌测试框架中知道的 EXPECT 宏的东西 我想在一个测试中做出多个断言 同时不在第一次失败时中止测试 我在这些
python
Testing
assert
Nose
在鼻子测试中打印不同的长描述以及测试名称 python
我正在使用命令 nosetests test py 运行时仅打印描述的第一行 我想要完整的描述以及测试名称 我怎么做 测试 py 文件 import unittests class TestClass unittest TestCase d
python
Nose
pythonunittest
如何禁用鼻子测试的覆盖率报告
希望有一个简单的 python djangonose测试问题 虽然我找不到答案nose的文档 运行测试后如何停止显示覆盖率报告 manage py test 我的覆盖率报告有一个巨大的问题 迫使我向后滚动几十行以获取失败测试的回溯 这确实中
python
django
Testing
Nose
Python:基于nosetest是否运行的条件变量
我正在运行鼻子测试 它有一个设置功能 需要加载与生产数据库不同的数据库 我使用的 ORM 是 peewee 它要求在定义中设置模型的数据库 所以我需要设置一个条件变量 但我不知道使用什么条件来检查 nostest 是否正在运行该文件 我在
python
Nose
peewee
如何使用 --timid 标志来覆盖鼻子
我想使用运行 nosetests with coverage 内德 巴切尔德 Ned Batchelder 的报道模块 http nedbatchelder com code coverage 但将 timid 标志传递给覆盖模块 有没有办
python
Nose
codecoverage
如何在 Python Selenium 中实现类似 TestNG 的功能或在一个测试套件中添加多个单元测试?
假设我有这两个鼻子测试ExampleTest1 py和ExampleTest2 py ExampleTest1 py class ExampleTest1 TestBase def testExampleTest1 self if name
python
unittesting
selenium
pythonunittest
Nose
在主 Django 数据库上运行 Unittest
我正在寻找一种在 django 测试期间运行完整 celery 设置的方法 在此询问其他问题 https stackoverflow com questions 20638751 run a celery worker that conne
python
django
Testing
Celery
Nose
Python 3.3:使用nose.tools.assert_equals时出现DeprecationWarning
我正在使用nosetest工具来断言pythonunittest https docs python org 3 3 library unittest html from nose tools import assert equals as
python
deprecated
python33
Nose
pythonunittest
安装并添加到 PATH 后,“nosetests”在 Windows 上无法识别
I m on 艰难地学习 Python 的练习 46 http learnpythonthehardway org book ex46 html 我打算安装鼻子并运行鼻子测试 我已经使用pip安装了nose 但是当我在 tests 文件夹上
python
installation
Nose
nosetests
如何在 Python 中生成 HTML 单元测试输出?
我正在寻找任何方法来在 HTML 摘要中显示 Python 单元测试的结果 对于 Java 和 Ruby 有这样的工具 尚未找到任何似乎可以为 Python 执行此操作的工具 那里有吗 JUnit HTML 输出 source ibm co
python
unittesting
Nose
让 `nosetests` 脚本按 Python 版本选择文件夹
我曾经有过这个setup cfg file nosetests where test python toolbox 但现在我通过提供两个并行代码库来支持 Python 2 和 Python 3 其中一个位于source py2文件夹和其中一
python
python3x
Nose
运行鼻子测试并将警告作为错误?
跑步时nosetests从命令行 如何指定 不可忽略 警告应被视为错误 默认情况下 会打印警告 但不计为失败 snip service accounts database py 151 SADeprecationWarning Use se
python
unittesting
warnings
Nose
用鼻子重复进行单次或多次测试
如同这个问题 https stackoverflow com questions 4088354 is it possible to use nose to run one test multiple times concurrently
python
Nose
使用鼻子进行测试的 Python 导入 - 导入当前包之上的模块的最佳实践是什么
这是一个经常以不同形式被问到的问题 并且经常得到 哈哈 你做得不对 的回答 很确定这是因为人们 包括我 尝试使用一个常识性场景作为实现 并且解决方案并不明显 如果您以前没有这样做过 会接受 让飞出瓶子 的答案 Given project i
python
Testing
Nose
pythonimport
Nose 未运行 Django 文档测试
如同这个问题 https stackoverflow com questions 2614363 why isnt django nose running the doctests in my models 然而 就我而言 我的模型都没有d
python
django
unittesting
Testing
Nose
1
2
3
»