示例#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
示例#2
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         'tests',
         'featmongo',
     ]
     self.test_suite = True
示例#3
0
文件: setup.py 项目: dhagrow/watchdog
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--cov=' + SRC_DIR,
         '--cov-report=term-missing',
         'tests']
     self.test_suite = True
示例#4
0
文件: setup.py 项目: smetj/wishbone
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         "-v",
         "tests/"
     ]
     self.test_suite = True
示例#5
0
文件: setup.py 项目: shauns/nameko
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--cov', 'nameko',
         join(setup_dir, 'test'),
     ]
     self.test_suite = True
示例#6
0
文件: setup.py 项目: fluxion/fluxion
 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
示例#7
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--pylint',
         '--pylint-error-types=FEW',
     ]
     self.test_suite = True
示例#8
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--ignore=build',
         '--pep8',
         '.']
     self.test_suite = True
示例#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"]
示例#10
0
文件: setup.py 项目: 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']
示例#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
示例#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
示例#13
0
文件: setup.py 项目: pyclear/httpie
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--doctest-modules', '--verbose',
         './httpie', './tests'
     ]
     self.test_suite = True
示例#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
示例#15
0
文件: setup.py 项目: tdryer/purplex
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--cov=purplex',
         '--pep8',
     ]
     self.test_suite = True
示例#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
示例#17
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_suite = True
     self.test_args = [
         '--verbose',
         './tests'
     ]
示例#18
0
文件: setup.py 项目: bischatt78/cobra
 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
示例#19
0
文件: setup.py 项目: p1c2u/wykop-sdk
 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
示例#20
0
文件: setup.py 项目: wd5/1-pyvsb
 def finalize_options(self):
     Test.finalize_options(self)
     self.test_args = [
         "tests/test.py",
         #"--capture=no",
     ]
     self.test_suite = True
示例#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
示例#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
示例#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
示例#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')
示例#25
0
文件: test.py 项目: usnistgov/fipy
    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
示例#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
示例#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]
示例#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
示例#30
0
文件: setup.py 项目: Spanarchie/kaiso
 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
示例#31
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_suite = True
     self.test_args = ['--verbose', './cwrouter', './tests']
示例#32
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['packagename/tests']
     self.test_suite = True
示例#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
示例#34
0
文件: setup.py 项目: wanneut/gunicorn
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['tests']
     if self.cov:
         self.test_args += ['--cov', 'gunicorn']
     self.test_suite = True
示例#35
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--verbose', '--doctest-modules', '--ignore', 'setup.py'
     ]
     self.test_suite = True
示例#36
0
 def finalize_options(self):
     _test.finalize_options(self)
     self.test_args.insert(0, 'discover')
示例#37
0
文件: setup.py 项目: BadSeby/chanjo
 def finalize_options(self):
     """Set options for the command line."""
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
示例#38
0
文件: setup.py 项目: zuphilip/ics.py
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['--cov', 'ics', 'ics/', 'tests/']
     self.test_suite = True
示例#39
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
示例#40
0
 def finalize_options(self):
     """Test command magic."""
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
示例#41
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['--strict', '--verbose', '--tb=long', 'tests']
     self.test_suite = True
示例#42
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['factuursturen']
     self.test_suite = True
示例#43
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     # should work with setuptools <18, 18 18.5
     self.test_suite = ' '
示例#44
0
 def finalize_options(self):
     test.finalize_options(self)
     self.test_args = []
     self.test_suite = True
示例#45
0
 def finalize_options(self):
     """Add options to the test runner (tox)."""
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
示例#46
0
文件: setup.py 项目: demis001/puticr
 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 = []
示例#47
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['--recreate', '-v']
     self.test_suite = True
示例#48
0
 def finalize_options(self):
     Test.finalize_options(self)
     self.test_args = [ "tests" ]
     self.test_suite = True
示例#49
0
文件: setup.py 项目: xushoucai/SoCo
 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
示例#50
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
示例#51
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['.', '-vvrsxX', '--cov-report=html']
     self.test_suite = True
示例#52
0
 def finalize_options(self):
     # pylint: disable=W0201
     TestCommand.finalize_options(self)
     self.test_args = []
     self.test_suite = True
示例#53
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_suite = ' '
示例#54
0
 def finalize_options(self):
     test.finalize_options(self)
     setattr(self, 'test_args', self.TEST_ARGS)
     setattr(self, 'test_suite', True)
示例#55
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ['--tb=short', 'tests/']
     self.test_suite = True
示例#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'])
示例#57
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = ["-rs", "--cov=pyseneye", "--cov-report=term-missing"]
     self.test_suite = True
示例#58
0
 def finalize_options(self):
     TestCommand.finalize_options(self)
     self.test_args = [
         '--doctest-modules', '--verbose', './httpie', './tests'
     ]
     self.test_suite = True
示例#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