Package bitten :: Package util :: Module testrunner :: Class unittest

Class unittest

distutils.cmd.Command --+        
                        |        
       setuptools.Command --+    
                            |    
 setuptools.command.test.test --+
                                |
                               unittest

Instance Methods
 
initialize_options(self)
Set default values for all the options that this command supports.
 
finalize_options(self)
Set final values for all the options that this command supports.
 
run_tests(self)

Inherited from setuptools.command.test.test: run, with_project_on_sys_path

Inherited from setuptools.Command: __init__, reinitialize_command

Inherited from distutils.cmd.Command: __getattr__, announce, copy_file, copy_tree, debug_print, dump_options, ensure_dirname, ensure_filename, ensure_finalized, ensure_string, ensure_string_list, execute, get_command_name, get_finalized_command, get_sub_commands, make_archive, make_file, mkpath, move_file, run_command, set_undefined_options, spawn, warn

Class Variables
  description = 'run unit tests after in-place build, and option...
  user_options = [('test-module=', 'm', 'Run \'test_suite\' in s...

Inherited from setuptools.Command: __doc__, command_consumes_arguments

Inherited from distutils.cmd.Command: sub_commands

Method Details

initialize_options(self)

 

Set default values for all the options that this command supports. Note that these defaults may be overridden by other commands, by the setup script, by config files, or by the command-line. Thus, this is not the place to code dependencies between options; generally, 'initialize_options()' implementations are just a bunch of "self.foo = None" assignments.

This method must be implemented by all command classes.

Overrides: distutils.cmd.Command.initialize_options
(inherited documentation)

finalize_options(self)

 

Set final values for all the options that this command supports. This is always called as late as possible, ie. after any option assignments from the command-line or from other commands have been done. Thus, this is the place to code option dependencies: if 'foo' depends on 'bar', then it is safe to set 'foo' from 'bar' as long as 'foo' still has the same value it was assigned in 'initialize_options()'.

This method must be implemented by all command classes.

Overrides: distutils.cmd.Command.finalize_options
(inherited documentation)

run_tests(self)

 
Overrides: setuptools.command.test.test.run_tests

Class Variable Details

description

Value:
'run unit tests after in-place build, and optionally record code cover\
age'

user_options

Value:
[('test-module=', 'm', 'Run \'test_suite\' in specified module'),
 ('test-suite=',
  's',
  'Test suite to run (e.g. \'some_module.test_suite\')'),
 ('xml-output=',
  None,
  'Path to the XML file where test results are written to'),
 ('coverage-dir=', None, 'Directory where coverage files are to be sto\
...