pynose


Namepynose JSON
Version 1.5.1 PyPI version JSON
download
home_pagehttps://github.com/mdmintz/pynose
Summarypynose fixes nose to extend unittest and make testing easier
upload_time2024-03-22 18:50:01
maintainerNone
docs_urlNone
authorMichael Mintz
requires_python>=3.7
licenseMIT
keywords test unittest doctest automatic discovery
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1>pynose 🐍👃 <a href="https://pypi.python.org/pypi/pynose" target="_blank"><img src="https://img.shields.io/pypi/v/pynose.svg?color=3399EE" alt="PyPI version" /></a></h1>

### **[pynose](https://github.com/mdmintz/pynose)** fixes **[nose](https://nose.readthedocs.io/en/latest/)** to extend [unittest](https://docs.python.org/3/library/unittest.html) and make testing easier.

--------

``pynose`` is an updated version of ``nose``, originally made by Jason Pellerin.

This version of ``nose`` is compatible with ``Python 3.7+`` (including ``3.13+``).

Changes in ``pynose`` from legacy ``nose`` include:
* Fixes "AttributeError: module 'collections' has no attribute 'Callable'."
* Fixes "AttributeError: module 'inspect' has no attribute 'getargspec'."
* Fixes "ImportError: cannot import name '_TextTestResult' from 'unittest'."
* Fixes "RuntimeWarning: TestResult has no addDuration method."
* Fixes "DeprecationWarning: pkg_resources is deprecated as an API."
* Fixes all ``flake8`` issues from the original ``nose``.
* Replaces the ``imp`` module with the newer ``importlib`` module.
* The default logging level now hides `"INFO"` logs for less noise.
* Adds ``--capture-logs`` for hiding output from all logging levels.
* Adds ``--logging-init`` to use ``logging.basicConfig(level)``.
* The ``-s`` option is always active to see the output of ``print()``.
* Adds ``--capture-output`` for hiding the output of ``print()``.
* Adds ``--co`` as a shortcut to using ``--collect-only``.

--------

The original description of ``nose``:

>nose extends the test loading and running features of unittest, making
it easier to write, find and run tests.

>By default, nose runs tests in files or directories under the current
working directory whose names include "test" or "Test" at a word
boundary (like "test_this" or "functional_test" or "TestClass" but not
"libtest"). Test output is similar to that of unittest, but also includes
captured stdout output from failing tests, for easy print-style debugging.

>These features, and many more, are customizable through the use of
plugins. Plugins included with nose provide support for doctest, code
coverage and profiling, flexible attribute-based test selection,
output capture and more. More information about writing plugins
may be found on in the nose API documentation, here:
https://nose.readthedocs.io/en/latest/

--------

```

Basic usage
***********

Use "pynose" OR "nosetests" to run tests:

    pynose [options] [(optional) test files or directories]

    nosetests [options] [(optional) test files or directories]

In addition to passing command-line options, you may also put
configuration options in a .noserc or nose.cfg file in your home
directory. These are standard .ini-style config files. Put your
nosetests configuration in a [nosetests] section, with the -- prefix
removed:

   [nosetests]
   verbosity=3
   with-doctest=1

There is also possibility to disable configuration files loading (might
be useful when running i.e. tox and you do not want your global nose
config file to be used by tox). In order to ignore those configuration
files simply set an environment variable "NOSE_IGNORE_CONFIG_FILES".

There are several other ways to use the nose test runner besides the
*nosetests* script. You may use nose in a test script:

   import nose
   nose.main()

If you do not want the test script to exit with 0 on success and 1 on
failure (like unittest.main), use nose.run() instead:

   import nose
   result = nose.run()

*result* will be true if the test run succeeded, or false if any test
failed or raised an uncaught exception. Lastly, you can run nose.core
directly, which will run nose.main():

   python /path/to/nose/core.py

Please see the usage message for the nosetests script for information
about how to control which tests nose runs, which plugins are loaded,
and the test output.


Extended usage
==============

nose collects tests automatically from python source files,
directories and packages found in its working directory (which
defaults to the current working directory). Any python source file,
directory or package that matches the testMatch regular expression (by
default: *(?:^|[b_.-])[Tt]est)* will be collected as a test (or source
for collection of tests). In addition, all other packages found in the
working directory will be examined for python source files or
directories that match testMatch. Package discovery descends all the
way down the tree, so package.tests and package.sub.tests and
package.sub.sub2.tests will all be collected.

Within a test directory or package, any python source file matching
testMatch will be examined for test cases. Within a test module,
functions and classes whose names match testMatch and TestCase
subclasses with any name will be loaded and executed as tests. Tests
may use the assert keyword or raise AssertionErrors to indicate test
failure. TestCase subclasses may do the same or use the various
TestCase methods available.

**It is important to note that the default behavior of nose is to not
include tests from files which are executable.**  To include tests
from such files, remove their executable bit or use the --exe flag
(see 'Options' section below).


Selecting Tests
---------------

To specify which tests to run, pass test names on the command line:

   nosetests only_test_this.py

Test names specified may be file or module names, and may optionally
indicate the test case to run by separating the module or file name
from the test case name with a colon. Filenames may be relative or
absolute. Examples:

   nosetests test.module
   nosetests another.test:TestCase.test_method
   nosetests a.test:TestCase
   nosetests /path/to/test/file.py:test_function

You may also change the working directory where nose looks for tests
by using the -w switch:

   nosetests -w /path/to/tests

Note, however, that support for multiple -w arguments is now
deprecated and will be removed in a future release. As of nose 0.10,
you can get the same behavior by specifying the target directories
*without* the -w switch:

   nosetests /path/to/tests /another/path/to/tests

Further customization of test selection and loading is possible
through the use of plugins.

Test result output is identical to that of unittest, except for the
additional features (error classes, and plugin-supplied features such
as output capture and assert introspection) detailed in the options
below.


Configuration
-------------

In addition to passing command-line options, you may also put
configuration options in your project *setup.cfg* file, or a .noserc
or nose.cfg file in your home directory. In any of these standard ini-
style config files, you put your nosetests configuration in a
"[nosetests]" section. Options are the same as on the command line,
with the -- prefix removed. For options that are simple switches, you
must supply a value:

   [nosetests]
   verbosity=3
   with-doctest=1

All configuration files that are found will be loaded and their
options combined. You can override the standard config file loading
with the "-c" option.


Using Plugins
-------------

There are numerous nose plugins available via easy_install and
elsewhere. To use a plugin, just install it. The plugin will add
command line options to nosetests. To verify that the plugin is
installed, run:

   nosetests --plugins

You can add -v or -vv to that command to show more information about
each plugin.

If you are running nose.main() or nose.run() from a script, you can
specify a list of plugins to use by passing a list of plugins with the
plugins keyword argument.


Options
-------

-V, --version

   Output nose version and exit

-p, --plugins

   Output list of available plugins and exit. Combine with higher
   verbosity for greater detail

-v=DEFAULT, --verbose=DEFAULT

   Be more verbose. [NOSE_VERBOSE]

--verbosity=VERBOSITY

   Set verbosity; --verbosity=2 is the same as -v

-q=DEFAULT, --quiet=DEFAULT

   Be less verbose

-c=FILES, --config=FILES

   Load configuration from config file(s). May be specified multiple
   times; in that case, all config files will be loaded and combined

-w=WHERE, --where=WHERE

   Look for tests in this directory. May be specified multiple times.
   The first directory passed will be used as the working directory,
   in place of the current working directory, which is the default.
   Others will be added to the list of tests to execute. [NOSE_WHERE]

--py3where=PY3WHERE

   Look for tests in this directory under Python 3.x. Functions the
   same as 'where', but only applies if running under Python 3.x or
   above.  Note that, if present under 3.x, this option completely
   replaces any directories specified with 'where', so the 'where'
   option becomes ineffective. [NOSE_PY3WHERE]

-m=REGEX, --match=REGEX, --testmatch=REGEX

   Files, directories, function names, and class names that match this
   regular expression are considered tests.  Default:
   (?:^|[b_./-])[Tt]est [NOSE_TESTMATCH]

--tests=NAMES

   Run these tests (comma-separated list). This argument is useful
   mainly from configuration files; on the command line, just pass the
   tests to run as additional arguments with no switch.

-l=DEFAULT, --debug=DEFAULT

   Activate debug logging for one or more systems. Available debug
   loggers: nose, nose.importer, nose.inspector, nose.plugins,
   nose.result and nose.selector. Separate multiple names with a
   comma.

--debug-log=FILE

   Log debug messages to this file (default: sys.stderr)

--logging-config=FILE, --log-config=FILE

   Load logging config from this file -- bypasses all other logging
   config settings.

-I=REGEX, --ignore-files=REGEX

   Completely ignore any file that matches this regular expression.
   Takes precedence over any other settings or plugins. Specifying
   this option will replace the default setting. Specify this option
   multiple times to add more regular expressions [NOSE_IGNORE_FILES]

-e=REGEX, --exclude=REGEX

   Do not run tests that match regular expression [NOSE_EXCLUDE]

-i=REGEX, --include=REGEX

   This regular expression will be applied to files, directories,
   function names, and class names for a chance to include additional
   tests that do not match TESTMATCH.  Specify this option multiple
   times to add more regular expressions [NOSE_INCLUDE]

-x, --stop

   Stop running tests after the first error or failure

-P, --no-path-adjustment

   Do not make any changes to sys.path when loading tests [NOSE_NOPATH]

--exe

   Look for tests in python modules that are executable. Normal
   behavior is to exclude executable modules, since they may not be
   import-safe [NOSE_INCLUDE_EXE]

--noexe

   DO NOT look for tests in python modules that are executable. (The
   default on the windows platform is to do so.)

--traverse-namespace

   Traverse through all path entries of a namespace package

--first-package-wins, --first-pkg-wins, --1st-pkg-wins

   The nose importer will normally evict a package from sys.modules if
   it sees a package with the same name in a different location. Set
   this option to disable that behavior.

--no-byte-compile

   Prevent nose from byte-compiling the source into .pyc files while
   nose is scanning for and running tests.

-a=ATTR, --attr=ATTR

   Run only tests that have attributes specified by ATTR [NOSE_ATTR]

-A=EXPR, --eval-attr=EXPR

   Run only tests for whose attributes the Python expression EXPR
   evaluates to True [NOSE_EVAL_ATTR]

-s, --nocapture

   Do not capture stdout (any stdout output will be printed
   immediately) [NOSE_NOCAPTURE]

--nologcapture

   Disable logging capture plugin. Logging configuration will be left
   intact. [NOSE_NOLOGCAPTURE]

--logging-format=FORMAT

   Specify custom format to print statements. Uses the same format as
   used by standard logging handlers. [NOSE_LOGFORMAT]

--logging-datefmt=FORMAT

   Specify custom date/time format to print statements. Uses the same
   format as used by standard logging handlers. [NOSE_LOGDATEFMT]

--logging-filter=FILTER

   Specify which statements to filter in/out. By default, everything
   is captured. If the output is too verbose, use this option to
   filter out needless output. Example: filter=foo will capture
   statements issued ONLY to  foo or foo.what.ever.sub but not foobar
   or other logger. Specify multiple loggers with comma:
   filter=foo,bar,baz. If any logger name is prefixed with a minus, eg
   filter=-foo, it will be excluded rather than included. Default:
   exclude logging messages from nose itself (-nose). [NOSE_LOGFILTER]

--logging-clear-handlers

   Clear all other logging handlers

--logging-level=LEVEL

   Set the log level to capture. (Default: "WARNING")
   Levels: ["DEBUG", "INFO", "WARNING", "ERROR", "CRITICAL"]
   You may need to include `--logging-init` to change the default.

--with-coverage

   Enable plugin Coverage: Activate a coverage report using the
   Ned Batchelder coverage module. [NOSE_WITH_COVERAGE]

--cover-package=PACKAGE

   Restrict coverage output to selected packages [NOSE_COVER_PACKAGE]

--cover-erase

   Erase previously collected coverage statistics before run

--cover-tests

   Include test modules in coverage report [NOSE_COVER_TESTS]

--cover-min-percentage=DEFAULT

   Minimum percentage of coverage for tests to pass
   [NOSE_COVER_MIN_PERCENTAGE]

--cover-inclusive

   Include all python files under working directory in coverage
   report.  Useful for discovering holes in test coverage if not all
   files are imported by the test suite. [NOSE_COVER_INCLUSIVE]

--cover-html

   Produce HTML coverage information

--cover-html-dir=DIR

   Produce HTML coverage information in dir

--cover-branches

   Include branch coverage in coverage report [NOSE_COVER_BRANCHES]

--cover-xml

   Produce XML coverage information

--cover-xml-file=FILE

   Produce XML coverage information in file

--pdb

   Drop into debugger on failures or errors

--pdb-failures

   Drop into debugger on failures

--pdb-errors

   Drop into debugger on errors

--no-deprecated

   Disable special handling of DeprecatedTest exceptions.

--with-doctest

   Enable plugin Doctest: Activate doctest plugin to find and run
   doctests in non-test modules. [NOSE_WITH_DOCTEST]

--doctest-tests

   Also look for doctests in test modules. Note that classes, methods
   and functions should have either doctests or non-doctest tests, not
   both. [NOSE_DOCTEST_TESTS]

--doctest-extension=EXT

   Also look for doctests in files with this extension
   [NOSE_DOCTEST_EXTENSION]

--doctest-result-variable=VAR

   Change the variable name set to the result of the last interpreter
   command from the default '_'. Can be used to avoid conflicts with
   the _() function used for text translation.
   [NOSE_DOCTEST_RESULT_VAR]

--doctest-fixtures=SUFFIX

   Find fixtures for a doctest file in module with this name appended
   to the base name of the doctest file

--doctest-options=OPTIONS

   Specify options to pass to doctest. Eg.
   '+ELLIPSIS,+NORMALIZE_WHITESPACE'

--with-isolation

   Enable plugin IsolationPlugin: Activate the isolation plugin to
   isolate changes to external modules to a single test module or
   package. The isolation plugin resets the contents of sys.modules
   after each test module or package runs to its state before the
   test. PLEASE NOTE that this plugin should not be used with the
   coverage plugin, or in any other case where module reloading may
   produce undesirable side-effects. [NOSE_WITH_ISOLATION]

-d, --detailed-errors, --failure-detail

   Add detail to error output by attempting to evaluate failed asserts
   [NOSE_DETAILED_ERRORS]

--no-skip

   Disable special handling of SkipTest exceptions.

--with-id

   Enable plugin TestId: Activate to add a test id (like #1) to each
   test name output. Activate with --failed to rerun failing tests
   only. [NOSE_WITH_ID]

--id-file=FILE

   Store test ids found in test runs in this file. Default is the file
   .noseids in the working directory.

--failed

   Run the tests that failed in the last test run.

--processes=NUM

   Spread test run among this many processes. Set a number equal to
   the number of processors or cores in your machine for best results.
   Pass a negative number to have the number of processes
   automatically set to the number of cores. Passing 0 means to
   disable parallel testing. Default is 0 unless NOSE_PROCESSES is
   set. [NOSE_PROCESSES]

--process-timeout=SECONDS

   Set timeout for return of results from each test runner process.
   Default is 10. [NOSE_PROCESS_TIMEOUT]

--process-restartworker

   If set, will restart each worker process once their tests are done,
   this helps control memory leaks from killing the system.
   [NOSE_PROCESS_RESTARTWORKER]

--with-xunit

   Enable plugin Xunit: This plugin provides test results in the
   standard XUnit XML format. [NOSE_WITH_XUNIT]

--xunit-file=FILE

   Path to xml file to store the xunit report in. Default is
   nosetests.xml in the working directory [NOSE_XUNIT_FILE]

--xunit-testsuite-name=PACKAGE

   Name of the testsuite in the xunit xml, generated by plugin.
   Default test suite name is nosetests.

--all-modules

   Enable plugin AllModules: Collect tests from all python modules.
   [NOSE_ALL_MODULES]

--co, --collect-only

   Enable collect-only: Collect and output test names only,
   but do not run any tests. [COLLECT_ONLY]

--capture-output, --capture_output

   Enable capturing output. This hides the output of print().
   (os.environ["NOSE_CAPTURE"] = "1")

--capture-logs, --capture_logs

   Enable capturing logs. This hides output from all log levels.
   (os.environ["NOSE_CAPTURELOGS"] = "1")

--logging-init

   Using this will call `logging.basicConfig(level)`, which may
   be needed if you're trying to change the default logging level
   with `--logging-level=LEVEL`.
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/mdmintz/pynose",
    "name": "pynose",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": null,
    "keywords": "test unittest doctest automatic discovery",
    "author": "Michael Mintz",
    "author_email": "mdmintz@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f7/83/54b550eda020b00ce8e3b43eeffc8b635ddad33109b09ecb40521e261a23/pynose-1.5.1.tar.gz",
    "platform": null,
    "description": "<h1>pynose \ud83d\udc0d\ud83d\udc43 <a href=\"https://pypi.python.org/pypi/pynose\" target=\"_blank\"><img src=\"https://img.shields.io/pypi/v/pynose.svg?color=3399EE\" alt=\"PyPI version\" /></a></h1>\n\n### **[pynose](https://github.com/mdmintz/pynose)** fixes **[nose](https://nose.readthedocs.io/en/latest/)** to extend [unittest](https://docs.python.org/3/library/unittest.html) and make testing easier.\n\n--------\n\n``pynose`` is an updated version of ``nose``, originally made by Jason Pellerin.\n\nThis version of ``nose`` is compatible with ``Python 3.7+`` (including ``3.13+``).\n\nChanges in ``pynose`` from legacy ``nose`` include:\n* Fixes \"AttributeError: module 'collections' has no attribute 'Callable'.\"\n* Fixes \"AttributeError: module 'inspect' has no attribute 'getargspec'.\"\n* Fixes \"ImportError: cannot import name '_TextTestResult' from 'unittest'.\"\n* Fixes \"RuntimeWarning: TestResult has no addDuration method.\"\n* Fixes \"DeprecationWarning: pkg_resources is deprecated as an API.\"\n* Fixes all ``flake8`` issues from the original ``nose``.\n* Replaces the ``imp`` module with the newer ``importlib`` module.\n* The default logging level now hides `\"INFO\"` logs for less noise.\n* Adds ``--capture-logs`` for hiding output from all logging levels.\n* Adds ``--logging-init`` to use ``logging.basicConfig(level)``.\n* The ``-s`` option is always active to see the output of ``print()``.\n* Adds ``--capture-output`` for hiding the output of ``print()``.\n* Adds ``--co`` as a shortcut to using ``--collect-only``.\n\n--------\n\nThe original description of ``nose``:\n\n>nose extends the test loading and running features of unittest, making\nit easier to write, find and run tests.\n\n>By default, nose runs tests in files or directories under the current\nworking directory whose names include \"test\" or \"Test\" at a word\nboundary (like \"test_this\" or \"functional_test\" or \"TestClass\" but not\n\"libtest\"). Test output is similar to that of unittest, but also includes\ncaptured stdout output from failing tests, for easy print-style debugging.\n\n>These features, and many more, are customizable through the use of\nplugins. Plugins included with nose provide support for doctest, code\ncoverage and profiling, flexible attribute-based test selection,\noutput capture and more. More information about writing plugins\nmay be found on in the nose API documentation, here:\nhttps://nose.readthedocs.io/en/latest/\n\n--------\n\n```\n\nBasic usage\n***********\n\nUse \"pynose\" OR \"nosetests\" to run tests:\n\n    pynose [options] [(optional) test files or directories]\n\n    nosetests [options] [(optional) test files or directories]\n\nIn addition to passing command-line options, you may also put\nconfiguration options in a .noserc or nose.cfg file in your home\ndirectory. These are standard .ini-style config files. Put your\nnosetests configuration in a [nosetests] section, with the -- prefix\nremoved:\n\n   [nosetests]\n   verbosity=3\n   with-doctest=1\n\nThere is also possibility to disable configuration files loading (might\nbe useful when running i.e. tox and you do not want your global nose\nconfig file to be used by tox). In order to ignore those configuration\nfiles simply set an environment variable \"NOSE_IGNORE_CONFIG_FILES\".\n\nThere are several other ways to use the nose test runner besides the\n*nosetests* script. You may use nose in a test script:\n\n   import nose\n   nose.main()\n\nIf you do not want the test script to exit with 0 on success and 1 on\nfailure (like unittest.main), use nose.run() instead:\n\n   import nose\n   result = nose.run()\n\n*result* will be true if the test run succeeded, or false if any test\nfailed or raised an uncaught exception. Lastly, you can run nose.core\ndirectly, which will run nose.main():\n\n   python /path/to/nose/core.py\n\nPlease see the usage message for the nosetests script for information\nabout how to control which tests nose runs, which plugins are loaded,\nand the test output.\n\n\nExtended usage\n==============\n\nnose collects tests automatically from python source files,\ndirectories and packages found in its working directory (which\ndefaults to the current working directory). Any python source file,\ndirectory or package that matches the testMatch regular expression (by\ndefault: *(?:^|[b_.-])[Tt]est)* will be collected as a test (or source\nfor collection of tests). In addition, all other packages found in the\nworking directory will be examined for python source files or\ndirectories that match testMatch. Package discovery descends all the\nway down the tree, so package.tests and package.sub.tests and\npackage.sub.sub2.tests will all be collected.\n\nWithin a test directory or package, any python source file matching\ntestMatch will be examined for test cases. Within a test module,\nfunctions and classes whose names match testMatch and TestCase\nsubclasses with any name will be loaded and executed as tests. Tests\nmay use the assert keyword or raise AssertionErrors to indicate test\nfailure. TestCase subclasses may do the same or use the various\nTestCase methods available.\n\n**It is important to note that the default behavior of nose is to not\ninclude tests from files which are executable.**  To include tests\nfrom such files, remove their executable bit or use the --exe flag\n(see 'Options' section below).\n\n\nSelecting Tests\n---------------\n\nTo specify which tests to run, pass test names on the command line:\n\n   nosetests only_test_this.py\n\nTest names specified may be file or module names, and may optionally\nindicate the test case to run by separating the module or file name\nfrom the test case name with a colon. Filenames may be relative or\nabsolute. Examples:\n\n   nosetests test.module\n   nosetests another.test:TestCase.test_method\n   nosetests a.test:TestCase\n   nosetests /path/to/test/file.py:test_function\n\nYou may also change the working directory where nose looks for tests\nby using the -w switch:\n\n   nosetests -w /path/to/tests\n\nNote, however, that support for multiple -w arguments is now\ndeprecated and will be removed in a future release. As of nose 0.10,\nyou can get the same behavior by specifying the target directories\n*without* the -w switch:\n\n   nosetests /path/to/tests /another/path/to/tests\n\nFurther customization of test selection and loading is possible\nthrough the use of plugins.\n\nTest result output is identical to that of unittest, except for the\nadditional features (error classes, and plugin-supplied features such\nas output capture and assert introspection) detailed in the options\nbelow.\n\n\nConfiguration\n-------------\n\nIn addition to passing command-line options, you may also put\nconfiguration options in your project *setup.cfg* file, or a .noserc\nor nose.cfg file in your home directory. In any of these standard ini-\nstyle config files, you put your nosetests configuration in a\n\"[nosetests]\" section. Options are the same as on the command line,\nwith the -- prefix removed. For options that are simple switches, you\nmust supply a value:\n\n   [nosetests]\n   verbosity=3\n   with-doctest=1\n\nAll configuration files that are found will be loaded and their\noptions combined. You can override the standard config file loading\nwith the \"-c\" option.\n\n\nUsing Plugins\n-------------\n\nThere are numerous nose plugins available via easy_install and\nelsewhere. To use a plugin, just install it. The plugin will add\ncommand line options to nosetests. To verify that the plugin is\ninstalled, run:\n\n   nosetests --plugins\n\nYou can add -v or -vv to that command to show more information about\neach plugin.\n\nIf you are running nose.main() or nose.run() from a script, you can\nspecify a list of plugins to use by passing a list of plugins with the\nplugins keyword argument.\n\n\nOptions\n-------\n\n-V, --version\n\n   Output nose version and exit\n\n-p, --plugins\n\n   Output list of available plugins and exit. Combine with higher\n   verbosity for greater detail\n\n-v=DEFAULT, --verbose=DEFAULT\n\n   Be more verbose. [NOSE_VERBOSE]\n\n--verbosity=VERBOSITY\n\n   Set verbosity; --verbosity=2 is the same as -v\n\n-q=DEFAULT, --quiet=DEFAULT\n\n   Be less verbose\n\n-c=FILES, --config=FILES\n\n   Load configuration from config file(s). May be specified multiple\n   times; in that case, all config files will be loaded and combined\n\n-w=WHERE, --where=WHERE\n\n   Look for tests in this directory. May be specified multiple times.\n   The first directory passed will be used as the working directory,\n   in place of the current working directory, which is the default.\n   Others will be added to the list of tests to execute. [NOSE_WHERE]\n\n--py3where=PY3WHERE\n\n   Look for tests in this directory under Python 3.x. Functions the\n   same as 'where', but only applies if running under Python 3.x or\n   above.  Note that, if present under 3.x, this option completely\n   replaces any directories specified with 'where', so the 'where'\n   option becomes ineffective. [NOSE_PY3WHERE]\n\n-m=REGEX, --match=REGEX, --testmatch=REGEX\n\n   Files, directories, function names, and class names that match this\n   regular expression are considered tests.  Default:\n   (?:^|[b_./-])[Tt]est [NOSE_TESTMATCH]\n\n--tests=NAMES\n\n   Run these tests (comma-separated list). This argument is useful\n   mainly from configuration files; on the command line, just pass the\n   tests to run as additional arguments with no switch.\n\n-l=DEFAULT, --debug=DEFAULT\n\n   Activate debug logging for one or more systems. Available debug\n   loggers: nose, nose.importer, nose.inspector, nose.plugins,\n   nose.result and nose.selector. Separate multiple names with a\n   comma.\n\n--debug-log=FILE\n\n   Log debug messages to this file (default: sys.stderr)\n\n--logging-config=FILE, --log-config=FILE\n\n   Load logging config from this file -- bypasses all other logging\n   config settings.\n\n-I=REGEX, --ignore-files=REGEX\n\n   Completely ignore any file that matches this regular expression.\n   Takes precedence over any other settings or plugins. Specifying\n   this option will replace the default setting. Specify this option\n   multiple times to add more regular expressions [NOSE_IGNORE_FILES]\n\n-e=REGEX, --exclude=REGEX\n\n   Do not run tests that match regular expression [NOSE_EXCLUDE]\n\n-i=REGEX, --include=REGEX\n\n   This regular expression will be applied to files, directories,\n   function names, and class names for a chance to include additional\n   tests that do not match TESTMATCH.  Specify this option multiple\n   times to add more regular expressions [NOSE_INCLUDE]\n\n-x, --stop\n\n   Stop running tests after the first error or failure\n\n-P, --no-path-adjustment\n\n   Do not make any changes to sys.path when loading tests [NOSE_NOPATH]\n\n--exe\n\n   Look for tests in python modules that are executable. Normal\n   behavior is to exclude executable modules, since they may not be\n   import-safe [NOSE_INCLUDE_EXE]\n\n--noexe\n\n   DO NOT look for tests in python modules that are executable. (The\n   default on the windows platform is to do so.)\n\n--traverse-namespace\n\n   Traverse through all path entries of a namespace package\n\n--first-package-wins, --first-pkg-wins, --1st-pkg-wins\n\n   The nose importer will normally evict a package from sys.modules if\n   it sees a package with the same name in a different location. Set\n   this option to disable that behavior.\n\n--no-byte-compile\n\n   Prevent nose from byte-compiling the source into .pyc files while\n   nose is scanning for and running tests.\n\n-a=ATTR, --attr=ATTR\n\n   Run only tests that have attributes specified by ATTR [NOSE_ATTR]\n\n-A=EXPR, --eval-attr=EXPR\n\n   Run only tests for whose attributes the Python expression EXPR\n   evaluates to True [NOSE_EVAL_ATTR]\n\n-s, --nocapture\n\n   Do not capture stdout (any stdout output will be printed\n   immediately) [NOSE_NOCAPTURE]\n\n--nologcapture\n\n   Disable logging capture plugin. Logging configuration will be left\n   intact. [NOSE_NOLOGCAPTURE]\n\n--logging-format=FORMAT\n\n   Specify custom format to print statements. Uses the same format as\n   used by standard logging handlers. [NOSE_LOGFORMAT]\n\n--logging-datefmt=FORMAT\n\n   Specify custom date/time format to print statements. Uses the same\n   format as used by standard logging handlers. [NOSE_LOGDATEFMT]\n\n--logging-filter=FILTER\n\n   Specify which statements to filter in/out. By default, everything\n   is captured. If the output is too verbose, use this option to\n   filter out needless output. Example: filter=foo will capture\n   statements issued ONLY to  foo or foo.what.ever.sub but not foobar\n   or other logger. Specify multiple loggers with comma:\n   filter=foo,bar,baz. If any logger name is prefixed with a minus, eg\n   filter=-foo, it will be excluded rather than included. Default:\n   exclude logging messages from nose itself (-nose). [NOSE_LOGFILTER]\n\n--logging-clear-handlers\n\n   Clear all other logging handlers\n\n--logging-level=LEVEL\n\n   Set the log level to capture. (Default: \"WARNING\")\n   Levels: [\"DEBUG\", \"INFO\", \"WARNING\", \"ERROR\", \"CRITICAL\"]\n   You may need to include `--logging-init` to change the default.\n\n--with-coverage\n\n   Enable plugin Coverage: Activate a coverage report using the\n   Ned Batchelder coverage module. [NOSE_WITH_COVERAGE]\n\n--cover-package=PACKAGE\n\n   Restrict coverage output to selected packages [NOSE_COVER_PACKAGE]\n\n--cover-erase\n\n   Erase previously collected coverage statistics before run\n\n--cover-tests\n\n   Include test modules in coverage report [NOSE_COVER_TESTS]\n\n--cover-min-percentage=DEFAULT\n\n   Minimum percentage of coverage for tests to pass\n   [NOSE_COVER_MIN_PERCENTAGE]\n\n--cover-inclusive\n\n   Include all python files under working directory in coverage\n   report.  Useful for discovering holes in test coverage if not all\n   files are imported by the test suite. [NOSE_COVER_INCLUSIVE]\n\n--cover-html\n\n   Produce HTML coverage information\n\n--cover-html-dir=DIR\n\n   Produce HTML coverage information in dir\n\n--cover-branches\n\n   Include branch coverage in coverage report [NOSE_COVER_BRANCHES]\n\n--cover-xml\n\n   Produce XML coverage information\n\n--cover-xml-file=FILE\n\n   Produce XML coverage information in file\n\n--pdb\n\n   Drop into debugger on failures or errors\n\n--pdb-failures\n\n   Drop into debugger on failures\n\n--pdb-errors\n\n   Drop into debugger on errors\n\n--no-deprecated\n\n   Disable special handling of DeprecatedTest exceptions.\n\n--with-doctest\n\n   Enable plugin Doctest: Activate doctest plugin to find and run\n   doctests in non-test modules. [NOSE_WITH_DOCTEST]\n\n--doctest-tests\n\n   Also look for doctests in test modules. Note that classes, methods\n   and functions should have either doctests or non-doctest tests, not\n   both. [NOSE_DOCTEST_TESTS]\n\n--doctest-extension=EXT\n\n   Also look for doctests in files with this extension\n   [NOSE_DOCTEST_EXTENSION]\n\n--doctest-result-variable=VAR\n\n   Change the variable name set to the result of the last interpreter\n   command from the default '_'. Can be used to avoid conflicts with\n   the _() function used for text translation.\n   [NOSE_DOCTEST_RESULT_VAR]\n\n--doctest-fixtures=SUFFIX\n\n   Find fixtures for a doctest file in module with this name appended\n   to the base name of the doctest file\n\n--doctest-options=OPTIONS\n\n   Specify options to pass to doctest. Eg.\n   '+ELLIPSIS,+NORMALIZE_WHITESPACE'\n\n--with-isolation\n\n   Enable plugin IsolationPlugin: Activate the isolation plugin to\n   isolate changes to external modules to a single test module or\n   package. The isolation plugin resets the contents of sys.modules\n   after each test module or package runs to its state before the\n   test. PLEASE NOTE that this plugin should not be used with the\n   coverage plugin, or in any other case where module reloading may\n   produce undesirable side-effects. [NOSE_WITH_ISOLATION]\n\n-d, --detailed-errors, --failure-detail\n\n   Add detail to error output by attempting to evaluate failed asserts\n   [NOSE_DETAILED_ERRORS]\n\n--no-skip\n\n   Disable special handling of SkipTest exceptions.\n\n--with-id\n\n   Enable plugin TestId: Activate to add a test id (like #1) to each\n   test name output. Activate with --failed to rerun failing tests\n   only. [NOSE_WITH_ID]\n\n--id-file=FILE\n\n   Store test ids found in test runs in this file. Default is the file\n   .noseids in the working directory.\n\n--failed\n\n   Run the tests that failed in the last test run.\n\n--processes=NUM\n\n   Spread test run among this many processes. Set a number equal to\n   the number of processors or cores in your machine for best results.\n   Pass a negative number to have the number of processes\n   automatically set to the number of cores. Passing 0 means to\n   disable parallel testing. Default is 0 unless NOSE_PROCESSES is\n   set. [NOSE_PROCESSES]\n\n--process-timeout=SECONDS\n\n   Set timeout for return of results from each test runner process.\n   Default is 10. [NOSE_PROCESS_TIMEOUT]\n\n--process-restartworker\n\n   If set, will restart each worker process once their tests are done,\n   this helps control memory leaks from killing the system.\n   [NOSE_PROCESS_RESTARTWORKER]\n\n--with-xunit\n\n   Enable plugin Xunit: This plugin provides test results in the\n   standard XUnit XML format. [NOSE_WITH_XUNIT]\n\n--xunit-file=FILE\n\n   Path to xml file to store the xunit report in. Default is\n   nosetests.xml in the working directory [NOSE_XUNIT_FILE]\n\n--xunit-testsuite-name=PACKAGE\n\n   Name of the testsuite in the xunit xml, generated by plugin.\n   Default test suite name is nosetests.\n\n--all-modules\n\n   Enable plugin AllModules: Collect tests from all python modules.\n   [NOSE_ALL_MODULES]\n\n--co, --collect-only\n\n   Enable collect-only: Collect and output test names only,\n   but do not run any tests. [COLLECT_ONLY]\n\n--capture-output, --capture_output\n\n   Enable capturing output. This hides the output of print().\n   (os.environ[\"NOSE_CAPTURE\"] = \"1\")\n\n--capture-logs, --capture_logs\n\n   Enable capturing logs. This hides output from all log levels.\n   (os.environ[\"NOSE_CAPTURELOGS\"] = \"1\")\n\n--logging-init\n\n   Using this will call `logging.basicConfig(level)`, which may\n   be needed if you're trying to change the default logging level\n   with `--logging-level=LEVEL`.\n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "pynose fixes nose to extend unittest and make testing easier",
    "version": "1.5.1",
    "project_urls": {
        "Documentation": "https://nose.readthedocs.io/en/latest/",
        "Download": "https://pypi.org/project/pynose/#files",
        "Homepage": "https://github.com/mdmintz/pynose",
        "PyPI": "https://pypi.org/project/pynose/",
        "Source": "https://github.com/mdmintz/pynose"
    },
    "split_keywords": [
        "test",
        "unittest",
        "doctest",
        "automatic",
        "discovery"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "db8ba0743597b58e4aec4e2a2f5b4fa3c1866cc743d40d412a03806b5ae9de3f",
                "md5": "02c14e501e04bc3231e1236f03115f3f",
                "sha256": "735e4d160bcb3a02dbfcff9c9f9407d211cf62523094722158ea87c9822e0d06"
            },
            "downloads": -1,
            "filename": "pynose-1.5.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "02c14e501e04bc3231e1236f03115f3f",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 116348,
            "upload_time": "2024-03-22T18:49:59",
            "upload_time_iso_8601": "2024-03-22T18:49:59.116571Z",
            "url": "https://files.pythonhosted.org/packages/db/8b/a0743597b58e4aec4e2a2f5b4fa3c1866cc743d40d412a03806b5ae9de3f/pynose-1.5.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "f78354b550eda020b00ce8e3b43eeffc8b635ddad33109b09ecb40521e261a23",
                "md5": "980d63fed8654a157ed5f39ccbafd6e1",
                "sha256": "68d5730959b0c9630e22671bdd3e48e5c421cf296108e9c04a40fdd7d5a9691c"
            },
            "downloads": -1,
            "filename": "pynose-1.5.1.tar.gz",
            "has_sig": false,
            "md5_digest": "980d63fed8654a157ed5f39ccbafd6e1",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 109805,
            "upload_time": "2024-03-22T18:50:01",
            "upload_time_iso_8601": "2024-03-22T18:50:01.180388Z",
            "url": "https://files.pythonhosted.org/packages/f7/83/54b550eda020b00ce8e3b43eeffc8b635ddad33109b09ecb40521e261a23/pynose-1.5.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-22 18:50:01",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mdmintz",
    "github_project": "pynose",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pynose"
}
        
Elapsed time: 0.21859s