class documentation

class DiscoverRunner:

View In Hierarchy

A Django test runner that uses unittest2 test discovery.
Class Method add​_arguments Undocumented
Method build​_suite Undocumented
Method get​_test​_runner​_kwargs Undocumented
Method log Log the message at the given logging level (the default is INFO).
Method run​_checks Undocumented
Method run​_suite Undocumented
Method run​_tests Run the unit tests for all the test labels in the provided list.
Method setup​_databases Undocumented
Method setup​_test​_environment Undocumented
Method suite​_result Undocumented
Method teardown​_databases Destroy all the non-mirror databases.
Method teardown​_test​_environment Undocumented
Method __init__ Undocumented
Method ​_get​_databases Undocumented
Method get​_databases Undocumented
Method get​_resultclass Undocumented
Method load​_tests​_for​_label Undocumented
Method load​_with​_patterns Undocumented
Method setup​_shuffler Undocumented
Class Variable reorder​_by Undocumented
Instance Variable ​_shuffler Undocumented
Instance Variable buffer Undocumented
Instance Variable debug​_mode Undocumented
Instance Variable debug​_sql Undocumented
Instance Variable exclude​_tags Undocumented
Instance Variable failfast Undocumented
Instance Variable interactive Undocumented
Instance Variable keepdb Undocumented
Instance Variable logger Undocumented
Instance Variable parallel Undocumented
Instance Variable pattern Undocumented
Instance Variable pdb Undocumented
Instance Variable reverse Undocumented
Instance Variable shuffle Undocumented
Instance Variable tags Undocumented
Instance Variable test​_name​_patterns Undocumented
Instance Variable time​_keeper Undocumented
Instance Variable top​_level Undocumented
Instance Variable verbosity Undocumented
Property shuffle​_seed Undocumented
@classmethod
def add_arguments(cls, parser):

Undocumented

def build_suite(self, test_labels=None, extra_tests=None, **kwargs):

Undocumented

def get_test_runner_kwargs(self):

Undocumented

def log(self, msg, level=None):

Log the message at the given logging level (the default is INFO).

If a logger isn't set, the message is instead printed to the console, respecting the configured verbosity. A verbosity of 0 prints no output, a verbosity of 1 prints INFO and above, and a verbosity of 2 or higher prints all levels.

def run_checks(self, databases):

Undocumented

def run_suite(self, suite, **kwargs):

Undocumented

def run_tests(self, test_labels, extra_tests=None, **kwargs):

Run the unit tests for all the test labels in the provided list.

Test labels should be dotted Python paths to test modules, test classes, or test methods.

Return the number of tests that failed.

def setup_databases(self, **kwargs):

Undocumented

def setup_test_environment(self, **kwargs):

Undocumented

def suite_result(self, suite, result, **kwargs):

Undocumented

def teardown_databases(self, old_config, **kwargs):
Destroy all the non-mirror databases.
def teardown_test_environment(self, **kwargs):

Undocumented

def __init__(self, pattern=None, top_level=None, verbosity=1, interactive=True, failfast=False, keepdb=False, reverse=False, debug_mode=False, debug_sql=False, parallel=0, tags=None, exclude_tags=None, test_name_patterns=None, pdb=False, buffer=False, enable_faulthandler=True, timing=False, shuffle=False, logger=None, **kwargs):

Undocumented

def _get_databases(self, suite):

Undocumented

def get_databases(self, suite):

Undocumented

def get_resultclass(self):

Undocumented

def load_tests_for_label(self, label, discover_kwargs):

Undocumented

@contextmanager
def load_with_patterns(self):

Undocumented

def setup_shuffler(self):

Undocumented

reorder_by =

Undocumented

_shuffler =

Undocumented

buffer =

Undocumented

debug_mode =

Undocumented

debug_sql =

Undocumented

exclude_tags =

Undocumented

failfast =

Undocumented

interactive =

Undocumented

keepdb =

Undocumented

logger =

Undocumented

parallel =

Undocumented

pattern =

Undocumented

pdb =

Undocumented

reverse =

Undocumented

shuffle =

Undocumented

tags =

Undocumented

test_name_patterns =

Undocumented

time_keeper =

Undocumented

top_level =

Undocumented

verbosity =

Undocumented

@property
shuffle_seed =

Undocumented