summaryrefslogtreecommitdiff
path: root/nose/plugins
Commit message (Collapse)AuthorAgeFilesLines
* FIX: Add simple testEric Larson2016-01-271-2/+16
|
* STY: No double negativeEric Larson2016-01-271-3/+3
|
* ENH: Allow not printing coverage reportEric Larson2016-01-271-22/+13
|
* Use a new test loader for each queue item.Harry Kao2015-12-221-2/+2
| | | | | | | | | The loader's ContextSuiteFactory keeps a reference to all of the test suites, even after they've been run, which consumes more and more memory over time. This change creates a new loader for each suite that's dispatched to the worker, which allows the GC to free the old test suites.
* Merge an amended version of #896.John Szakmeister2015-11-281-3/+12
|\ | | | | | | Adds an option to specify the location of the coverage config file.
| * Adds an option to specify the location of the coverage config file.Brian Reinhart2015-11-281-3/+12
| |
* | feat: adds an option that allows prefixing the class name in an xunit reportJoscha Feth2015-11-291-3/+23
|/
* capture: copy encoding and errors from from sys.stdout, if availableJohn Szakmeister2015-11-281-2/+9
|
* fake stdout should always have encoding attributeMatt Chisholm2015-11-281-0/+2
| | | | Some programs expect this attribute, and use it to encode strings before writing to stdout. If it's not there, they fail with an AttributeError.
* Merge an amended version of #945.John Szakmeister2015-11-281-2/+3
|\ | | | | | | Tee doesn't have encoding and errors attributes.
| * BUG: Tee doesn't have encoding or errors attrs.Prabhu Ramachandran2015-08-271-2/+3
| | | | | | | | | | | | On Python3, distutils.log uses the encoding and errors attribute of sys.stdout and stderr. Tests error out when nose is run with xunit and it replaces the stdout/stderr with a Tee.
* | Merge pull request #948 from adamchainz/logcapture_propagate_falseJohn Szakmeister2015-11-281-0/+7
|\ \ | | | | | | Fix logcapture plugin to capture output from non-propagating loggers,…
| * | Fix logcapture plugin to capture output from non-propagating loggers, and to ↵Adam Chainz2015-09-041-0/+7
| |/ | | | | | | not output 'no handlers could be found' message
* | testid: don't traceback if the idfile doesn't existJohn Szakmeister2015-11-281-27/+28
| |
* | Close idfile object in a finally clauseRenzo Lucioni2015-11-281-2/+3
|/
* fix 3rd party plugin override builtin pluginIgor Pavlov2015-08-181-1/+1
| | | | | | | | | | http://nose.readthedocs.org/en/latest/plugins/builtin.html Docs says that we should load builtin plugins first and entry point second to override builtin. We also should be aware of breaking someone compatibility, cause builtin plugin overriding feature was introduced Jan 20, 2010 and was broken on Nov 12, 2011, so it's a fix to a long-lived bug.
* Merge pull request #841 from fellowshipofone/masterJohn Szakmeister2015-04-041-13/+31
|\ | | | | [plugins] Handle multiprocess & cover together
| * [plugins] Move `is_worker` backNicolas Grasset2014-09-121-1/+1
| |
| * [plugins] Handle multiprocess & cover togetherNicolas Grasset2014-09-121-13/+31
| |
* | Fix #859 Xunit plug-in not able to change testsuite nameGaurang0332014-12-141-2/+14
| | | | | | | | | | | | | | Added command line parameter in Xunit plug-in to specify test suite name. Also added functional test case. Incorporated Comments
* | Fix #815: "ValueError: unsupported pickle protocol" with --with-id...John Szakmeister2014-10-241-0/+5
|/ | | | | | | | This would occur by running `nosetests --with-id` with a newer version of Python, and then run again with an older version of Python who doesn't recognize the pickle format. In this case, let's simply ignore the file, and move on allowing nosetests to overwrite it after gathering the data again.
* Merge pull request #798 from dplepage/masterJohn Szakmeister2014-08-111-11/+12
|\ | | | | Recognize doctest options defined in other plugins.
| * Recognize doctest options defined in other plugins.Daniel Lepage2014-08-101-11/+12
| |
* | Merge pull request #799 from danudey/masterJohn Szakmeister2014-08-101-1/+1
|\ \ | | | | | | Fix typo in log capture help
| * | Fix typo in log capture helpDan Udey2014-04-281-1/+1
| |/
* | Fix Testid docsamatellanes2014-06-241-4/+4
|/
* Fix #779: xunit report file is written in --where directoryJohn Szakmeister2014-04-201-1/+1
| | | | | Since the creation of the file has been delayed, we need the full path to the file since --where will change our current working directory.
* Fix plugin test interface documentation. #773diminoten2014-02-191-2/+2
|
* Fix a typo in the help for --cover-min-percentage.John Szakmeister2014-02-191-1/+1
| | | | Regenerate the man page too.
* Fix #690: Don't traceback when coverage reports fail.John Szakmeister2014-02-131-2/+11
| | | | | Under Jython this step fails badly and tanks Nose. Instead, emit a warning about the failure to create the coverage reports, and move on.
* Merge pull request #739 from chebee7i/cover_packageJohn Szakmeister2014-02-121-1/+2
|\ | | | | Instruct coverage instance to cover requested packages only.
| * Instruct coverage instance to cover requested packages only.chebee7i2013-10-181-1/+2
| |
* | Merge pull request #727 from malthe/fix-builtin-filteringJohn Szakmeister2014-02-121-1/+2
|\ \ | | | | | | Fixed issue with builtin filtering.
| * | Fixed issue with builtin filtering.Malthe Borch2014-02-121-1/+2
| |/ | | | | | | | | | | | | | | | | | | The superclass (which ultimately inherits from 'Handler') checks against any registered filters, before allowing a logging record. Nose's logging capture plugin should do the same, because these filters are allowed to modify the record. And it can easily happen that the logging format requires this modification (e.g. add an attribute).
* | Merge pull request #699 from ianw/skiptest-exceptionJohn Szakmeister2014-01-091-6/+13
|\ \ | | | | | | Look for unittest2 in skip plugin
| * | Look for unittest2 in skip pluginIan Wienand2013-06-201-6/+13
| | | | | | | | | | | | | | | | | | | | | | | | If unittest2 is available, try to use its SkipTest class rather than a nose internal version. Inspired by better integration with testtools for older python releases (see [1]). [1] https://review.openstack.org/#/c/33056/
* | | Merge pull request #750 from AndreLouisCaron/fix-xunit-capture-stackJohn Szakmeister2013-11-261-0/+3
|\ \ \ | | | | | | | | Fixes issue #749.
| * | | Fixes issue #749.Andre Caron2013-11-251-0/+3
| | | |
* | | | Merge pull request #724 from jszakmeister/fix-some-unicode-errorsJohn Szakmeister2013-10-213-61/+26
|\ \ \ \ | |_|_|/ |/| | | | | | | | | | | Fixes some unicode errors/handling in several areas of Nose. A special thanks to Thomas Kluyver (@takluyver) for all the reviews while getting this together.
| * | | Fix #720: nose with detailed errors raises encoding errorJohn Szakmeister2013-08-111-3/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In this case, the exception vector being passed in was a string that contained encoded UTF-8 sequences. It was being converted to unicode implicitly, which was raising a UnicodeDecodeError because some bytes were >= 128. Make sure the exception string is converted to unicode before trying to put the whole thing together. Thanks to Guillaume Ayoub for the test case.
| * | | Centralize some unicode and exception helpers into pyversion.John Szakmeister2013-08-112-50/+4
| | | | | | | | | | | | | | | | | | | | While we're at it, teach format_exception() to use the new exc_to_unicode() helper derived from work done in capture.py.
| * | | Fix #692: UnicodeDecodeError in xunit when capturing stdout and stderrJohn Szakmeister2013-08-111-23/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It turns out that `Xunit` was very mix-brained about how to formulate the blocks ultimately used for generating the report. In some parts, the expectation was to put unicode strings into the blocks, and in others it would insert encoded strings along with unicode strings into the blocks. It's the latter that was ultimately causing the issue. In particular, `_quoteattr` would sometimes receive a unicode string, and then it would get translated into UTF-8. Then, it would get inserted into a unicode string, which would cause Python to try and turn the UTF-8 encoded string back into a unicode one, but it would default to the ascii codec and fail. This makes us use unicode everywhere, sometimes forcing the data into unicode with replacement.
| * | | Fix #693: Python 2.4 incompatibilitiesJohn Szakmeister2013-08-111-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | BaseException didn't exist until Python 2.5. Let's create a helper in pyversion to check whether we're derived from BaseException on Python 2.5 or better, and just Exception on Python 2.4.
* | | | Don't save zero-byte xunit test reportsDan Savilonis2013-08-051-2/+3
|/ / /
* | | Add a fake isatty() method to Tee.Jimmy Wennlund2013-06-261-0/+4
| | |
* | | Fix #700: Tee is missing the writelines() method.John Szakmeister2013-06-261-0/+4
| |/ |/|
* | Merge pull request #684 from jszakmeister/fix-xunit-unicodeJohn Szakmeister2013-06-011-3/+4
|\ \ | | | | | | Fix xunit when writing unicode to stdout and stderr.
| * | Fix #680: xunit problem with unicode on stdoutJohn Szakmeister2013-05-071-1/+1
| | | | | | | | | | | | | | | | | | | | | It turns out we were trying to write unicode strings into a cStringIO.StringIO object, which doesn't work well with unicode strings. Instead, lets use StringIO.StringIO objects for capturing stdout and stderr.
| * | xunit: don't claim to take multiple args in Tee.write()John Szakmeister2013-05-071-2/+3
| | |
* | | Merge pull request #686 from jszakmeister/fix-issue-649John Szakmeister2013-06-011-1/+6
|\ \ \ | | | | | | | | Fix #649: UnicodeDecodeError when an exception contains encoded strings