Example #1
0
 def initialize_options(self):
     test.initialize_options(self)
     self.xml_output = None
     self.xml_output_file = None
     self.coverage_summary = None
     self.coverage_dir = None
     self.coverage_method = 'trace'
Example #2
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = [
         '--doctest-modules',
         '--strict',
         # '--fulltrace',  # useful for debugging
     ]
Example #3
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = [
         'Tests',
         '--cov=Robinhood/',
         '--cov-report=term-missing'
     ]    #load defaults here
 def initialize_options(self):
     orig_test.initialize_options(self)
     self.verbosity = None
     self.failfast = None
     self.reverse = None
     # self.args is needed because of the above "command_consumes_arguments" class attribute.
     self.args = None
Example #5
0
    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = []

        logging.basicConfig(format='%(levelname)-10s %(message)s')
        logging.getLogger().setLevel(logging.INFO)

        # if we have pytest-cache module we enable the test failures first mode
        try:
            import pytest_cache
            self.pytest_args.append("--ff")
        except ImportError:
            pass
        self.pytest_args.append("-s")

        if sys.stdout.isatty():
            # when run manually we enable fail fast
            self.pytest_args.append("--maxfail=1")
        try:
            import coveralls
            self.pytest_args.append("--cov=%s" % NAME)
            self.pytest_args.extend(["--cov-report", "term"])
            self.pytest_args.extend(["--cov-report", "xml"])

        except ImportError:
            pass
Example #6
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = [
         '--doctest-glob=tests/*.md',
         '--cov=delphin',
         '--cov-report=html'
     ]
Example #7
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.cov = None
     self.pytest_args = ['--cov', 'lizzy',
                         '--cov-report', 'term-missing',
                         '--cov-report', 'xml',
                         '-v']
Example #8
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_default_args = ('--cov-config=.coveragerc '
                                 '--cov=leadrouter '
                                 '--cov-report=term-missing '
                                 '--tb=short ')
     self.pytest_args = []
Example #9
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.cov = None
     self.pytest_args = ['--cov', MAIN_PACKAGE, '--cov-report', 'term-missing',
                         '--doctest-modules', '-s', '-v',
                         '--ignore', 'tests/plugins']
     self.cov_html = False
Example #10
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = [
         '--pep8',
         '--flakes',
         '--cov=errcron',
     ]
Example #11
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     try:
         from multiprocessing import cpu_count
         self.pytest_args = ['-n', str(cpu_count()), '--boxed']
     except (ImportError, NotImplementedError):
         self.pytest_args = ['-n', '1', '--boxed']
Example #12
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.cov = None
     self.cov_xml = False
     self.cov_html = False
     self.junitxml = None
     self.twisted = False
Example #13
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     # -rw turns on printing warnings. To see stack trace from
     # KeyboardInterrupt, add --fulltrace but it also makes the
     # traces huge by showing source code for each frame, so not
     # adding it by default.
     # To see stdout "live" instead of capturing it, use -s.
     coverage_args = ['--cov-config', os.path.join(ROOT, ".coveragerc"), '--cov=conda_kapsel',
                      '--cov-report=term-missing', '--cov-report=html', '--cov-fail-under=100', '--no-cov-on-fail']
     if PY2:
         # xdist appears to lock up the test suite with python
         # 2, maybe due to an interaction with coverage
         enable_xdist = []
     else:
         # Recent conda downright explodes if run from multiple processes at once,
         # so skip xdist until we add our own locking layer or something.
         enable_xdist = []
         # enable_xdist = ['-n', str(CPU_COUNT)]
     self.pytest_args = ['-rfew', '--durations=10'] + enable_xdist
     # 100% coverage on Windows requires us to do extra mocks because generally Windows
     # can't run all the servers, such as redis-server. So we relax the coverage requirement
     # for Windows only.
     if platform.system() != 'Windows':
         self.pytest_args = self.pytest_args + coverage_args
     self.pyfiles = None
     self.git_staged_pyfiles = None
     self.failed = []
     self.format_only = False
     self.git_staged_only = False
     self.profile_formatting = False
Example #14
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.cov = None
     self.cov_xml = False
     self.cov_html = False
     self.junitxml = None
     self.clearcache = False
Example #15
0
 def initialize_options(self):
     self.distribution.verbose = 0
     TestCommand.initialize_options(self)
     self.verbose = 0
     self.with_coverage = None
     self.with_xml_coverage = None
     self.with_xml_junit = None
     self.pytest_args = []
Example #16
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = [
         '-v',
         '--cov', 'gitlabtojenkins',
         '--cov-report', 'html', '--cov-report', 'xml',
         'tests'
     ]
Example #17
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = set()
     self.exitfirst = False
     self.last_failed = False
     self.verbose = 0
     self.pdb = False
     self.flakes = False
Example #18
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = [
         '--cov-config', '.coveragerc',
         '--cov-report', 'html',
         '--cov=hfut_stu_lib', 'tests/',
         '--doctest-modules'
     ]
Example #19
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = [
         '-rxs',
         'tests',
         '--cov=publicAPI/',
         '--cov-report=term-missing',
         '--cov-config=.coveragerc',
     ]
Example #20
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     try:
         from ConfigParser import ConfigParser
     except ImportError:
         from configparser import ConfigParser
     config = ConfigParser()
     config.read('pytest.ini')
     self.pytest_args = config.get('pytest', 'addopts').split(' ')
Example #21
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     try:
         from ConfigParser import ConfigParser
     except ImportError:
         from configparser import ConfigParser
     config = ConfigParser()
     config.read("pytest.ini")
     self.pytest_args = config.get("pytest", "addopts").split(" ")
Example #22
0
    def initialize_options(self):
        """Init pytest."""
        TestCommand.initialize_options(self)
        self.pytest_args = []

        from ConfigParser import ConfigParser

        config = ConfigParser()
        config.read('pytest.ini')
        self.pytest_args = config.get('pytest', 'addopts').split(' ')
Example #23
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.test_pythonpath = None
     self.test_string = None
     self.test_marker = None
     self.test_path = 'test'
     self.test_failfast = False
     self.test_quiet = False
     self.test_verbose = False
     self.junitxml = None
     self.pdb = False
Example #24
0
    def initialize_options(self):
        """
        Add attributes for new commandline options and set test_loader
        """
        TestCommand.initialize_options(self)
        self.test_filterm = None
        self.test_filterf = None
        self.test_xmlrunner = None

        self.test_loader = '%s:%s' % (self.TEST_LOADER_CLASS.TEST_LOADER_MODULE, self.TEST_LOADER_CLASS.__name__)
        log.info("test_loader set to %s" % self.test_loader)
Example #25
0
 def initialize_options(self):
     """init pytest."""
     testcommand.initialize_options(self)
     self.pytest_args = []
     try:
         from ConfigParser import ConfigParser
     except ImportError:
         from ConfigParser import ConfigParser
     config = ConfigParser()
     config.read("setup.cfg")
     self.pytest_args = config.get("pytest", "addopts").split(" ")
Example #26
0
    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.cov = None
        self.pytest_args = ['--cov', 'connexion', '--cov-report', 'term-missing', '-v']

        if sys.version_info[0] < 3:
            self.pytest_args.append('--cov-config=py2-coveragerc')
            self.pytest_args.append('--ignore=tests/aiohttp')
        else:
            self.pytest_args.append('--cov-config=py3-coveragerc')

        self.cov_html = False
Example #27
0
 def initialize_options(self):
     """Set additional options."""
     TestCommand.initialize_options(self)
     self.pytest_args = []
     try:
         from ConfigParser import ConfigParser
     except ImportError:
         from configparser import ConfigParser
     config = ConfigParser()
     config.read("pytest.ini")
     self.pytest_args = config.get("pytest", "addopts").split(" ")
     self.pytest_args.append("tests")
     self.pytest_args.append("obelix_client")
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.test_pythonpath = None
     self.test_ice_config = None
     self.test_string = None
     self.test_marker = None
     self.test_path = None
     self.test_no_capture = False
     self.test_failfast = False
     self.test_quiet = False
     self.test_verbose = False
     self.junitxml = None
     self.pdb = False
     self.markers = False
Example #29
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.cov = None
     self.pytest_args = [
         "--cov",
         MAIN_PACKAGE,
         "--cov-report",
         "term-missing",
         "--doctest-modules",
         "-s",
         "-v",
         "--ignore",
         "tests/plugins",
     ]
     self.cov_html = False
Example #30
0
    def initialize_options(self):
        TestCommand.initialize_options(self)
        self.pytest_args = []

        FORMAT = '%(levelname)-10s %(message)s'
        logging.basicConfig(format=FORMAT)
        logging.getLogger().setLevel(logging.INFO)

        # if we have pytest-cache module we enable the test failures first mode
        try:
            import pytest_cache  # noqa
            self.pytest_args.append("--ff")
        except ImportError:
            pass
        self.pytest_args.append("-s")

        if sys.stdout.isatty():
            # when run manually we enable fail fast
            self.pytest_args.append("--maxfail=1")
Example #31
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.tox_args = ''
Example #32
0
 def initialize_options(self):
     test.initialize_options(self)
     self.pytest_args = "-v --cov={}".format("mutmut")
Example #33
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.cov = None
     self.cov_xml = False
     self.cov_html = False
     self.junitxml = None
Example #34
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.cov = None
     self.cov_report = None
     self.junitxml = None
Example #35
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = ['--cov-report=term', '--cov=aws_okta_keyman']
Example #36
0
 def initialize_options(self):
     """Initialize options."""
     TestCommand.initialize_options(self)
     self.tox_args = None
Example #37
0
 def initialize_options(self):
     test_command.initialize_options(self)
     self.pytest_args = ""
Example #38
0
 def initialize_options(self):
     """Initialize options and set their defaults."""
     TestCommand.initialize_options(self)
     self.tox_args = ''
Example #39
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = []
Example #40
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = ['--cov', find_packages('src')]
Example #41
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = ['--cov-report=term-missing']
Example #42
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = [
         'Tests', '--cov=Robinhood/', '--cov-report=term-missing'
     ]  #load defaults here
 def initialize_options(self):
   TestCommand.initialize_options(self)
   self.pytest_args = [] # pylint: disable=W0201
Example #44
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = 'tests django_extensions --ds=tests.testapp.settings --cov=django_extensions --cov-report html --cov-report term'
Example #45
0
 def initialize_options(self):
     test.initialize_options(self)
     self.tox_args = '-v'
Example #46
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = [
         'tests/',
         '-rx'
     ]    #load defaults here
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = ['--cov', PROJECT_NAME]
Example #48
0
 def initialize_options(self):
     test.initialize_options(self)
     self.pytest_args = []
Example #49
0
 def initialize_options(self):
     self.args = []
     TestCommand.initialize_options(self)
Example #50
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     # self.pytest_args = '--pyargs iminuit'
     # self.pytest_args = ['--strict', '--verbose', '--tb=long', 'tests']
     self.pytest_args = ''
Example #51
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.pytest_args = ['src/test_mongolock.py']
Example #52
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.tests_base = None
Example #53
0
 def initialize_options(self):
     self.with_coverage = False
     test.initialize_options(self)
Example #54
0
 def initialize_options(self):
     test_command.initialize_options(self)
     self.tox_args = None
Example #55
0
 def initialize_options(self):
     TestCommand.initialize_options(self)
     self.cov = None
Example #56
0
 def initialize_options(self):
     TestCommand.initialize_options(self)