Example #1
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     if self.test_path is None:
         self.test_path = 'test'
     self.test_args = [self.test_path]
     if self.test_string is not None:
         self.test_args.extend(['-k', self.test_string])
     if self.test_marker is not None:
         self.test_args.extend(['-m', self.test_marker])
     if self.test_failfast:
         self.test_args.extend(['-x'])
     if self.test_verbose:
         self.test_args.extend(['-v'])
     if self.test_quiet:
         self.test_args.extend(['-q'])
     if self.junitxml is not None:
         self.test_args.extend(['--junitxml', self.junitxml])
     if self.pdb:
         self.test_args.extend(['--pdb'])
     print self.test_failfast
     self.test_suite = True
     if self.markers:
         self.test_args = "--markers"
     if self.test_ice_config is None:
         self.test_ice_config = os.path.abspath('ice.config')
     if not os.environ.has_key('ICE_CONFIG'):
         os.environ['ICE_CONFIG'] = self.test_ice_config
Example #2
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         'tests',
         'featmongo',
     ]
     self.test_suite = True
Example #3
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--cov=' + SRC_DIR,
         '--cov-report=term-missing',
         'tests']
     self.test_suite = True
Example #4
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         "-v",
         "tests/"
     ]
     self.test_suite = True
Example #5
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--cov', 'nameko',
         join(setup_dir, 'test'),
     ]
     self.test_suite = True
Example #6
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     # Specifying the directory with tests explicitly
     # to prevent Travis CI from running tests from dependencies' eggs
     # (which are copied to the same directory).
     self.test_args = ['-x', 'tests']
     self.test_suite = True
Example #7
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--pylint',
         '--pylint-error-types=FEW',
     ]
     self.test_suite = True
Example #8
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--ignore=build',
         '--pep8',
         '.']
     self.test_suite = True
Example #9
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_suite = True
     self.test_args = [package,
                       '--duration=5', 
                       '-m', 
                       ("").join(d + " or " for d in devices()) + "not loopback"]
Example #10
0
File: setup.py Project: stuk88/h
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['h']
     self.test_suite = True
     if self.cov:
         self.test_args += ['--cov', 'h',
                            '--cov-config', '.coveragerc']
Example #11
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         'tests', '--cov', 'gunicorn_thrift', '--cov-report',
         'term-missing', '--cov-config', '.coveragerc',
         ]
     self.test_suite = True
Example #12
0
    def finalize_options(self):
        """Stolen from http://pytest.org/latest/goodpractises.html."""

        TestCommand.finalize_options(self)
        self.test_args = ["-v", "-rf", "--cov-report", "term-missing", "--cov",
                          "bladerunner", "test"]
        self.test_suite = True
Example #13
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--doctest-modules', '--verbose',
         './httpie', './tests'
     ]
     self.test_suite = True
Example #14
0
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = []

        # for some reason we have to do this to get it to function correctly.
        self.pytest_args = []
        self.test_suite = True
Example #15
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--cov=purplex',
         '--pep8',
     ]
     self.test_suite = True
Example #16
0
    def finalize_options(self):
        """Find our package name and test options to fill out test_args."""

        TestCommand.finalize_options(self)
        self.test_args = ['-v', '-rx', '--cov', 'pypicloud_tools',
            '--cov-report', 'term-missing']
        self.test_suite = True
Example #17
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_suite = True
     self.test_args = [
         '--verbose',
         './tests'
     ]
Example #18
0
 def finalize_options(self):
     """Finalize any testing options."""
     TestCommand.finalize_options(self)
     # pylint:disable=attribute-defined-outside-init
     self.test_args = ['--junitxml=unittests.xml']
     # pylint:disable=attribute-defined-outside-init
     self.test_suite = True
Example #19
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '-s', 'tests', '--pep8', '--cov', 'wykop', '--cov-report',
         'term-missing', '--cov-report', 'html',
     ]
     self.test_suite = True
Example #20
0
File: setup.py Project: wd5/1-pyvsb
 def finalize_options(self):
     Test.finalize_options(self)
     self.test_args = [
         "tests/test.py",
         #"--capture=no",
     ]
     self.test_suite = True
Example #21
0
    def finalize_options(self):
        TestCommand.finalize_options(self)

        # https://bitbucket.org/pypa/setuptools/commits/cf565b6
        if get_distribution('setuptools').parsed_version < parse_version('18.4'):
            self.test_args = []
            self.test_suite = True
Example #22
0
    def finalize_options(self):
        TestCommand.finalize_options(self)
        self.test_args = ['--strict', '--verbose', '--tb=long']
        # disabling coverage in "setup.py test" for now (& see below)
#                          '--cov', 'expak',
#                          '--cov-report=html', '--cov-report=term']
        self.test_suite = True
Example #23
0
    def finalize_options(self):
        """Find our package name and test options to fill out test_args."""

        TestCommand.finalize_options(self)
        self.test_args = ["-v", "-rx", "--cov-report", "term-missing", "--cov",
                          "pypackage"]
        self.test_suite = True
Example #24
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_suite = True
     self.test_args = ['test/test_factcheck.py']
     if sys.version_info[0] > 2:
         self.test_args.append('test/test_factcheck_python3.py')
     self.test_args.append('--duration=10')
Example #25
0
    def finalize_options(self):
        noSuiteOrModule = (self.test_suite is None
                           and self.test_module is None)

        _test.finalize_options(self)

        if noSuiteOrModule:
            # setuptools completely changed how it uses test_suite and test_args with v. 18.0
            # we do our best to keep it confused
            self.test_suite = None

        if not (self.examples or self.modules or self.viewers):
            self.all = True
        if self.all or self.really_all:
            self.examples = True
            self.modules = True
        if self.really_all:
            self.viewers = True

        # If we drop setuptools < 18.0, the remaining lines can probably be removed

        self.test_args = list(self._test_args())

        if noSuiteOrModule:
            # setuptools completely changed how it uses test_suite and test_args with v. 18.0
            # we do our best to keep it confused
            self.test_suite = "dummy"
 def finalize_options(self):
     TestCommand.finalize_options(self)
     if os.environ.get('TRAVIS', False):
         self.test_args = ['-x', '--strict', '--verbose', '--tb=long', 'tests']
     else:
         self.test_args = ['-x', '--strict', '--verbose', '--tb=long', '--skiplarge', 'tests']
     self.test_suite = True
Example #27
0
 def finalize_options(self):
     """Finalize pytest."""
     TestCommand.finalize_options(self)
     if hasattr(self, '_test_args'):
         self.test_suite = ''
     else:
         self.test_args = []
         self.test_suite = True
Example #28
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     if self.cov:
         self.cov = ["--cov", self.cov, "--cov-report", "term-missing"]
         if self.cov_report:
             self.cov.extend(["--cov-report", self.cov_report])
     if self.junitxml:
         self.junitxml = ["--junitxml", self.junitxml]
Example #29
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     # New setuptools don't need this anymore, thus the try block.
     try:
         self.test_args = []
         self.test_suite = True
     except AttributeError:
         pass
Example #30
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--cov', 'kaiso',
         '--junitxml=test-results.xml',
         join(setup_dir, 'test'),
     ]
     self.test_suite = True
Example #31
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_suite = True
     self.test_args = ['--verbose', './cwrouter', './tests']
Example #32
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['packagename/tests']
     self.test_suite = True
Example #33
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--cov=' + SRC_DIR, '--cov-report=term-missing', 'tests'
     ]
     self.test_suite = True
Example #34
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['tests']
     if self.cov:
         self.test_args += ['--cov', 'gunicorn']
     self.test_suite = True
Example #35
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--verbose', '--doctest-modules', '--ignore', 'setup.py'
     ]
     self.test_suite = True
Example #36
0
 def finalize_options(self):
     _test.finalize_options(self)
     self.test_args.insert(0, 'discover')
Example #37
0
 def finalize_options(self):
     """Set options for the command line."""
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
Example #38
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['--cov', 'ics', 'ics/', 'tests/']
     self.test_suite = True
Example #39
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
Example #40
0
 def finalize_options(self):
     """Test command magic."""
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
Example #41
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['--strict', '--verbose', '--tb=long', 'tests']
     self.test_suite = True
Example #42
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['factuursturen']
     self.test_suite = True
Example #43
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     # should work with setuptools <18, 18 18.5
     self.test_suite = ' '
Example #44
0
 def finalize_options(self):
     test.finalize_options(self)
     self.test_args = []
     self.test_suite = True
Example #45
0
 def finalize_options(self):
     """Add options to the test runner (tox)."""
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
Example #46
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     # These are fake, and just set to appease distutils and setuptools.
     self.test_suite = True
     self.test_args = []
Example #47
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['--recreate', '-v']
     self.test_suite = True
Example #48
0
 def finalize_options(self):
     Test.finalize_options(self)
     self.test_args = [ "tests" ]
     self.test_suite = True
Example #49
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     # we don't run integration tests which need an actual Sonos device
     self.test_args = ['-m', 'not integration']
     self.test_suite = True
Example #50
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['.', '-vvrsxX', '--cov-report=html']
     self.test_suite = True
Example #52
0
 def finalize_options(self):
     # pylint: disable=W0201
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
Example #53
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_suite = ' '
Example #54
0
 def finalize_options(self):
     test.finalize_options(self)
     setattr(self, 'test_args', self.TEST_ARGS)
     setattr(self, 'test_suite', True)
Example #55
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['--tb=short', 'tests/']
     self.test_suite = True
Example #56
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     if self.cov_html:
         self.pytest_args.extend(['--cov-report', 'html'])
     self.pytest_args.extend(['tests'])
Example #57
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ["-rs", "--cov=pyseneye", "--cov-report=term-missing"]
     self.test_suite = True
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--doctest-modules', '--verbose', './httpie', './tests'
     ]
     self.test_suite = True
Example #59
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['pyramid_oauthlib']
     if self.cov:
         self.test_args += ['--cov', 'pyramid_oauthlib']
     self.test_suite = True
 def finalize_options(self):
     """Finalize pytest."""
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True