nose
How to make py.test or nose to look for tests inside all python files?
I do have several small mo开发者_如何学Godules where the tests are inside them and py.test or nose does not look for them because they do not contain test in their filename.[详细]
2023-01-15 22:14 分类:问答Check that a function raises a warning with nose tests
I\'m writing unit tests u开发者_如何学运维sing nose, and I\'d like to check whether a function raises a warning (the function uses warnings.warn). Is this something that can easily be done? def your_c[详细]
2023-01-13 23:47 分类:问答Python unit testing: make nose show failed assertions values
is it possible to show the assertion values that failed? It shows the traceback and what kind of excep开发者_运维问答tion was throw but it would more practical to know which values failed.[详细]
2023-01-13 20:27 分类:问答Nose / Nosegae: Import problems
I have this problem and it\'s drivin\' me nuts! So I am developing my first real Google App Engine application and I always like to discover things while writing tests.[详细]
2023-01-13 13:58 分类:问答Is there a way to make freshen tests fail on undefined tests?
By default when I run a freshen scenario, which contains an undefin开发者_运维百科ed given/when/then clause, that test is simply marked as undefined. No further helpful message as to what actually isn[详细]
2023-01-11 22:07 分类:问答Is it possible to run doctests using unit2
I recently switched from nose to the new unittest2 package for my python unit testing needs. It does everything I want, except from the fact that I can\'t get its \"discover\" command to recognize the[详细]
2023-01-09 05:03 分类:问答Using gaetestbed within virtualenv
I\'d like to give GAE Testbed a try, but am running into the following error after completing the instructions on its homepage.[详细]
2023-01-06 06:57 分类:问答Getting tests to parallelize using nose in python
I have a directory with lots of .py files (say test_1.py, test_2.py and so on) Each one of them is written properly to be used with nose. So when I run nosetests script, it finds all the tests in all[详细]
2023-01-04 11:37 分类:问答ImportError using nose, no ImportError using raw unittest?
I get an ImportError when running my unittests using Nose and I don\'t when I just run it standalone. All files referred to here may be seen at http://gist.github.com/395541# .[详细]
2022-12-30 04:45 分类:问答How to use nose coverage with --timid flag
I\'d like开发者_如何学运维 to run \"nosetests --with-coverage\" using Ned Batchelder\'s coverage module, but passing the coverage module the --timid flag.[详细]
2022-12-28 19:08 分类:问答