Changeset View
Changeset View
Standalone View
Standalone View
devel/py-flaky/Makefile
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# $FreeBSD$ | |||||
PORTNAME= flaky | |||||
PORTVERSION= 3.6.0 | |||||
CATEGORIES= devel python | |||||
MASTER_SITES= CHEESESHOP | |||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | |||||
MAINTAINER= kai@FreeBSD.org | |||||
COMMENT= Plugin for nose or pytest that automatically reruns flaky tests | |||||
LICENSE= APACHE20 | |||||
LICENSE_FILE= ${WRKSRC}/LICENSE | |||||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}nose>0:devel/py-nose@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}pytest-xdist>0:devel/py-pytest-xdist@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}genty>0:devel/py-genty@${PY_FLAVOR} \ | |||||
${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock@${PY_FLAVOR} | |||||
USES= python | |||||
USE_PYTHON= distutils autoplist | |||||
NO_ARCH= yes | |||||
do-test: | |||||
koobs: setup.py defines `test_suite='test'` which sets up/enables the `setup.py test` command. What… | |||||
kaiAuthorUnsubmitted Done Inline ActionsNo, it just throws an exception: Traceback (most recent call last): File "setup.py", line 85, in <module> main() File "setup.py", line 80, in main classifiers=CLASSIFIERS, File "/usr/local/lib/python3.6/site-packages/setuptools/__init__.py", line 145, in setup return distutils.core.setup(**attrs) File "/usr/local/lib/python3.6/distutils/core.py", line 134, in setup ok = dist.parse_command_line() File "/usr/local/lib/python3.6/site-packages/setuptools/dist.py", line 703, in parse_command_line result = _Distribution.parse_command_line(self) File "/usr/local/lib/python3.6/distutils/dist.py", line 472, in parse_command_line args = self._parse_command_opts(parser, args) File "/usr/local/lib/python3.6/site-packages/setuptools/dist.py", line 1018, in _parse_command_opts nargs = _Distribution._parse_command_opts(self, parser, args) File "/usr/local/lib/python3.6/distutils/dist.py", line 567, in _parse_command_opts (args, opts) = parser.getopt(args[1:]) File "/usr/local/lib/python3.6/distutils/fancy_getopt.py", line 229, in getopt self._grok_option_table() File "/usr/local/lib/python3.6/distutils/fancy_getopt.py", line 157, in _grok_option_table "must be a string of length >= 2") % long) distutils.errors.DistutilsGetoptError: invalid long option 'b'tox-args='': must be a string of length >= 2 kai: No, it just throws an exception:
```
Traceback (most recent call last):
File "setup.py"… | |||||
cd ${WRKSRC} && \ | |||||
${PYTHON_CMD} -m nose -v --no-flaky-report \ | |||||
--with-flaky --exclude="test_nose_options_example" test/test_nose/ && \ | |||||
${PYTHON_CMD} -m pytest -v -rs --no-flaky-report \ | |||||
-k 'example and not options' -n 1 test/test_pytest && \ | |||||
${PYTHON_CMD} -m pytest -v -rs \ | |||||
-p no:flaky test/test_pytest/test_flaky_pytest_plugin.py && \ | |||||
${PYTHON_CMD} -m nose -v --no-flaky-report \ | |||||
--with-flaky --force-flaky --max-runs 2 test/test_nose/test_nose_options_example.py && \ | |||||
${PYTHON_CMD} -m pytest -v -rs --no-flaky-report \ | |||||
--force-flaky --max-runs 2 test/test_pytest/test_pytest_options_example.py | |||||
koobsUnsubmitted Not Done Inline ActionsYeh that's annoying, but its what tox.ini runs. In the absence of a single command to run all tests, then we can only execute what upstream defines Ultimately, a single pytest / nosetest / setup.py test should just run all the tests, using the build in test discovery mechanisms to find all tests recursively in test/*. Tool specific options arguments should go in setup.cfg koobs: Yeh that's annoying, but its what tox.ini runs.
In the absence of a single command to run all… | |||||
.include <bsd.port.mk> |
setup.py defines test_suite='test' which sets up/enables the setup.py test command. What happens when that's run Does it run all tests?