![]() Takes precedence over any other settings or plugins. I =REGEX, -ignore-files =REGEX ¶Ĭompletely ignore any file that matches this regular expression. Load logging config from this file – bypasses all other logging config settings. Log debug messages to this file (default: sys.stderr) -logging-config =FILE, -log-config =FILE ¶ ![]() Available debug loggers: nose, nose.importer, nose.inspector, ugins, nose.result and lector. l =DEFAULT, -debug =DEFAULT ¶Īctivate debug logging for one or more systems. This argument is useful mainly from configuration files on the command line, just pass the tests to run as additional arguments with no switch. m =REGEX, -match =REGEX, -testmatch =REGEX ¶įiles, directories, function names, and class names that match this regular expression are considered tests. Note that, if present under 3.x, this option completely replaces any directories specified with ‘where’, so the ‘where’ option becomes ineffective. Functions the same as ‘where’, but only applies if running under Python 3.x or above. Look for tests in this directory under Python 3.x. Others will be added to the list of tests to execute. The first directory passed will be used as the working directory, in place of the current working directory, which is the default. May be specified multiple times in that case, all config files will be loaded and combined -w =WHERE, -where =WHERE ¶ Set verbosity –verbosity=2 is the same as -v -q =DEFAULT, -quiet =DEFAULT ¶īe less verbose -c =FILES, -config =FILES ¶ Combine with higher verbosity for greater detail -v =DEFAULT, -verbose =DEFAULT ¶īe more verbose. Output list of available plugins and exit. Output nose version and exit -p, -plugins ¶ The –exe flag (see ‘Options’ section below). Tests from such files, remove their executable bit or use Not include tests from files which are executable. It is important to note that the default behavior of nose is to TestCase subclasses may do the same or use the various May use the assert keyword or raise AssertionErrors to indicate testįailure. Subclasses with any name will be loaded and executed as tests. Within a test module,įunctions and classes whose names match testMatch and TestCase TestMatch will be examined for test cases. Within a test directory or package, any python source file matching The way down the tree, so package.tests and and In addition, all other packagesįound in the working directory will be examined for python source files (by default: (?:\b|_)est will be collected as a test (or Any python source file,ĭirectory or package that matches the testMatch regular expression Nose collects tests automatically from python source files,ĭirectories and packages found in its working directory (whichĭefaults to the current working directory).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |