本文整理汇总了Python中setuptools.command.test.test.initialize_options函数的典型用法代码示例。如果您正苦于以下问题:Python initialize_options函数的具体用法?Python initialize_options怎么用?Python initialize_options使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了initialize_options函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Python代码示例。
示例1: initialize_options
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
开发者ID:pasztorpisti,项目名称:django-universal-view-decorator,代码行数:7,代码来源:setup.py
示例2: initialize_options
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']
开发者ID:nanalin0130,项目名称:requests,代码行数:7,代码来源:setup.py
示例3: initialize_options
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
开发者ID:conda,项目名称:kapsel,代码行数:30,代码来源:setup.py
示例4: initialize_options
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'
开发者ID:blaxter,项目名称:Bitten,代码行数:7,代码来源:testrunner.py
示例5: initialize_options
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
开发者ID:asermax,项目名称:django-omnibus,代码行数:7,代码来源:setup.py
示例6: initialize_options
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = [
'--doctest-glob=tests/*.md',
'--cov=delphin',
'--cov-report=html'
]
开发者ID:matichorvat,项目名称:pydelphin,代码行数:7,代码来源:setup.py
示例7: initialize_options
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
开发者ID:mohabusama,项目名称:zmon-worker,代码行数:7,代码来源:setup.py
示例8: initialize_options
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 = []
开发者ID:RealGeeks,项目名称:lead_router.py,代码行数:7,代码来源:setup.py
示例9: initialize_options
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = [
'--pep8',
'--flakes',
'--cov=errcron',
]
开发者ID:attakei,项目名称:errcron,代码行数:7,代码来源:setup.py
示例10: initialize_options
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = [
'--doctest-modules',
'--strict',
# '--fulltrace', # useful for debugging
]
开发者ID:heartsucker,项目名称:heartsucker.com,代码行数:7,代码来源:setup.py
示例11: initialize_options
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = [
'Tests',
'--cov=Robinhood/',
'--cov-report=term-missing'
] #load defaults here
开发者ID:dsouzarc,项目名称:Robinhood,代码行数:7,代码来源:setup.py
示例12: initialize_options
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
开发者ID:shi2wei3,项目名称:jira,代码行数:26,代码来源:setup.py
示例13: initialize_options
def initialize_options(self):
TestCommand.initialize_options(self)
self.cov = None
self.pytest_args = ['--cov', 'lizzy',
'--cov-report', 'term-missing',
'--cov-report', 'xml',
'-v']
开发者ID:mfelsche,项目名称:lizzy,代码行数:7,代码来源:setup.py
示例14: initialize_options
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
开发者ID:FlorianWilhelm,项目名称:pokerthproto,代码行数:7,代码来源:setup.py
示例15: initialize_options
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = [
'--cov-config', '.coveragerc',
'--cov-report', 'html',
'--cov=hfut_stu_lib', 'tests/',
'--doctest-modules'
]
开发者ID:caizezhi,项目名称:hfut_stu_lib,代码行数:8,代码来源:setup.py
示例16: initialize_options
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
开发者ID:robert-zaremba,项目名称:py-common,代码行数:8,代码来源:setuputils.py
示例17: initialize_options
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = [
'-v',
'--cov', 'gitlabtojenkins',
'--cov-report', 'html', '--cov-report', 'xml',
'tests'
]
开发者ID:GateprotectGmbH,项目名称:mergebot,代码行数:8,代码来源:setup.py
示例18: initialize_options
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 = []
开发者ID:julienvitard,项目名称:amappy,代码行数:8,代码来源:setup.py
示例19: initialize_options
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(' ')
开发者ID:SamiHiltunen,项目名称:jsonalchemy,代码行数:9,代码来源:setup.py
示例20: initialize_options
def initialize_options(self):
TestCommand.initialize_options(self)
self.pytest_args = [
'-rxs',
'tests',
'--cov=publicAPI/',
'--cov-report=term-missing',
'--cov-config=.coveragerc',
]
开发者ID:EVEprosper,项目名称:ProsperAPI,代码行数:9,代码来源:setup.py
注:本文中的setuptools.command.test.test.initialize_options函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论