{ "info": { "author": "Bob Silverberg", "author_email": "bsilverberg@mozilla.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: Mozilla Public License 2.0 (MPL 2.0)", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: POSIX", "Programming Language :: Python", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Topic :: Software Development :: Quality Assurance", "Topic :: Software Development :: Testing", "Topic :: Utilities" ], "description": "pytest-repeat\n===================\n\npytest-repeat is a plugin for `py.test `_ that makes it\neasy to repeat a single test, or multiple tests, a specific number of times.\n\n.. image:: https://img.shields.io/badge/license-MPL%202.0-blue.svg\n :target: https://github.com/pytest-dev/pytest-repeat/blob/master/LICENSE\n :alt: License\n.. image:: https://img.shields.io/pypi/v/pytest-repeat.svg\n :target: https://pypi.python.org/pypi/pytest-repeat/\n :alt: PyPI\n.. image:: https://img.shields.io/travis/pytest-dev/pytest-repeat.svg\n :target: https://travis-ci.org/pytest-dev/pytest-repeat/\n :alt: Travis\n.. image:: https://img.shields.io/github/issues-raw/pytest-dev/pytest-repeat.svg\n :target: https://github.com/pytest-dev/pytest-repeat/issues\n :alt: Issues\n.. image:: https://img.shields.io/requires/github/pytest-dev/pytest-repeat.svg\n :target: https://requires.io/github/pytest-dev/pytest-repeat/requirements/?branch=master\n :alt: Requirements\n\nRequirements\n------------\n\nYou will need the following prerequisites in order to use pytest-repeat:\n\n- Python 2.7, 3.4+ or PyPy\n- py.test 2.8 or newer\n\nInstallation\n------------\nTo install pytest-repeat:\n\n.. code-block:: bash\n\n $ pip install pytest-repeat\n\nRepeating a test\n----------------\n\nUse the :code:`--count` command line option to specify how many times you want\nyour test, or tests, to be run:\n\n.. code-block:: bash\n\n $ py.test --count=10 test_file.py\n\nEach test collected by py.test will be run :code:`count` times.\n\nIf you want to mark a test in your code to be repeated a number of times, you\ncan use the :code:`@pytest.mark.repeat(count)` decorator:\n\n.. code-block:: python\n\n import pytest\n\n\n @pytest.mark.repeat(3)\n def test_repeat_decorator():\n pass\n\nIf you want to override default tests executions order, you can use :code:`--repeat-scope`\ncommand line option with one of the next values: :code:`session`, :code:`module`, :code:`class` or :code:`function` (default).\nIt behaves like a scope of the pytest fixture.\n\n:code:`function` (default) scope repeats each test :code:`count` or :code:`repeat` times before executing next test.\n:code:`session` scope repeats whole tests session, i.e. all collected tests executed once, then all such tests executed again and etc.\n:code:`class` and :code:`module` behaves similar :code:`session` , but repeating set of tests is a tests from class or module, not all collected tests.\n\nRepeating a test until failure\n------------------------------\n\nIf you are trying to diagnose an intermittent failure, it can be useful to run the same\ntest over and over again until it fails. You can use pytest's :code:`-x` option in\nconjunction with pytest-repeat to force the test runner to stop at the first failure.\nFor example:\n\n.. code-block:: bash\n\n $ py.test --count=1000 -x test_file.py\n\nThis will attempt to run test_file.py 1000 times, but will stop as soon as a failure\noccurs.\n\nUnitTest Style Tests\n--------------------\n\nUnfortunately pytest-repeat is not able to work with unittest.TestCase test classes.\nThese tests will simply always run once, regardless of :code:`--count`, and show a warning.\n\nResources\n---------\n\n- `Release Notes `_\n- `Issue Tracker `_\n- `Code `_\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/pytest-dev/pytest-repeat", "keywords": "py.test pytest repeat", "license": "Mozilla Public License 2.0 (MPL 2.0)", "maintainer": "", "maintainer_email": "", "name": "pytest-repeat", "package_url": "https://pypi.org/project/pytest-repeat/", "platform": "", "project_url": "https://pypi.org/project/pytest-repeat/", "project_urls": { "Homepage": "https://github.com/pytest-dev/pytest-repeat" }, "release_url": "https://pypi.org/project/pytest-repeat/0.8.0/", "requires_dist": [ "pytest (>=3.6)" ], "requires_python": "", "summary": "pytest plugin for repeating tests", "version": "0.8.0" }, "last_serial": 4872288, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "637596737373354ebb120fb0df9182a1", "sha256": "a1dfe7720d468a98ee89380c09a3b5707f7936ce47de71c90f521837962070e1" }, "downloads": -1, "filename": "pytest-repeat-0.1.tar.gz", "has_sig": false, "md5_digest": "637596737373354ebb120fb0df9182a1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2265, "upload_time": "2015-10-19T19:56:06", "url": "https://files.pythonhosted.org/packages/8b/64/5213e139a0eaf954b27944a153272d4067176e11dd72cfd7442bd4ad2d66/pytest-repeat-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "b53407da4cfd01e50c2b30e4eb79eae5", "sha256": "d19c87f951456bec978e1a16bcad78dd0874fa3bc2a1762e2a218796fbd6db0a" }, "downloads": -1, "filename": "pytest_repeat-0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "b53407da4cfd01e50c2b30e4eb79eae5", "packagetype": "bdist_wheel", "python_version": "2.7", "requires_python": null, "size": 4605, "upload_time": "2015-10-27T17:49:54", "url": "https://files.pythonhosted.org/packages/48/ef/56564d5a6a663163b8ce8296ad99863795c007d16a6ef0218856521d18ec/pytest_repeat-0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ad465d411c37cadcf7ce2d112a421191", "sha256": "2cbbe5856dbf43fb56ffa045ffd0e5ae46f01904ec01cc1736310b755aa80f51" }, "downloads": -1, "filename": "pytest-repeat-0.2.tar.gz", "has_sig": false, "md5_digest": "ad465d411c37cadcf7ce2d112a421191", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 2547, "upload_time": "2015-10-27T17:49:49", "url": "https://files.pythonhosted.org/packages/e0/1e/d14a0e8d665600d860e0614f1af95398cdc6772bd9af79ed0c18e117ba5f/pytest-repeat-0.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "eb95ef11a0e8e51b65a10e9aac7f93ae", "sha256": "e1410203c38733c7fbfd67f8594c03658577f01352af80f8f19d1d74bc81df3a" }, "downloads": -1, "filename": "pytest_repeat-0.3.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "eb95ef11a0e8e51b65a10e9aac7f93ae", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5268, "upload_time": "2016-06-30T15:43:21", "url": "https://files.pythonhosted.org/packages/e8/4d/837357ec09a60b6f2831174b4a3b99a3fe2e55c21ff794f4be1fbfdb0be9/pytest_repeat-0.3.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c321477aa9954da62a24b06e00b03ef8", "sha256": "204c4801b735d4ffdf0d51b20e4991ec4dcf495b87673643a7172be57483658d" }, "downloads": -1, "filename": "pytest-repeat-0.3.0.tar.gz", "has_sig": false, "md5_digest": "c321477aa9954da62a24b06e00b03ef8", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3079, "upload_time": "2016-06-30T15:43:25", "url": "https://files.pythonhosted.org/packages/64/cb/78c7429c7cc14051a03b41fa9b699e51a9a2faf75c987d029e373a02e9db/pytest-repeat-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "2fdb0cd9036e39328839e613e3601473", "sha256": "9fa6a16342adc1e04af0ed15bb9904c63fc854c0f59d131c886e65e10d927091" }, "downloads": -1, "filename": "pytest_repeat-0.4.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "2fdb0cd9036e39328839e613e3601473", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5306, "upload_time": "2016-08-09T18:22:32", "url": "https://files.pythonhosted.org/packages/f7/4c/1f3946cbeaaef5ca39efad8f48c6e9381a312d1033c69ffaf847bcbcd277/pytest_repeat-0.4.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "53567ad0d7283d8c4166e2df9dd24c2d", "sha256": "81d844c4c3fc6f6e421fc814587c06a632ebea902a976b440763037732c81e8d" }, "downloads": -1, "filename": "pytest-repeat-0.4.0.tar.gz", "has_sig": false, "md5_digest": "53567ad0d7283d8c4166e2df9dd24c2d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3088, "upload_time": "2016-08-09T18:22:34", "url": "https://files.pythonhosted.org/packages/8e/71/7898e21150320cc3447a5c2fa805801675f9a3e6dc9f5a7576b94cb66047/pytest-repeat-0.4.0.tar.gz" } ], "0.4.1": [ { "comment_text": "", "digests": { "md5": "29616bd02a24d1b66095d1538cf4e5bb", "sha256": "5eb775a6ffc76eab980a7f9fce433a1cc3edf091545ae558a9ab8d88a0f07d00" }, "downloads": -1, "filename": "pytest_repeat-0.4.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "29616bd02a24d1b66095d1538cf4e5bb", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 5306, "upload_time": "2016-08-25T16:02:20", "url": "https://files.pythonhosted.org/packages/e8/cd/e86554eb58d067c3b2fe0be395ad324a7ec46be4278a29da0b848954aa4a/pytest_repeat-0.4.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "7c2971b62ed686e8e45e2ed2d40f263b", "sha256": "9fc2cc37be87212c5d98e92723cf26bc72d86159bf6c1bafc176270245867c51" }, "downloads": -1, "filename": "pytest-repeat-0.4.1.tar.gz", "has_sig": false, "md5_digest": "7c2971b62ed686e8e45e2ed2d40f263b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5014, "upload_time": "2016-08-25T16:02:22", "url": "https://files.pythonhosted.org/packages/a4/99/519fe6ec54d1a57e2c5c9a6a997101660a04db4ad812c5c893baeb93ec28/pytest-repeat-0.4.1.tar.gz" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "4a3c503b477648fa0c97a73fe67379dd", "sha256": "0fb0fb8cd604530bdaa8ed629e0582e92e171facb509470323190ebbd47496eb" }, "downloads": -1, "filename": "pytest_repeat-0.5.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "4a3c503b477648fa0c97a73fe67379dd", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3510, "upload_time": "2018-07-19T09:01:20", "url": "https://files.pythonhosted.org/packages/4b/9c/2057241715fd611228cc7b7d68691a1b797caddb0bbf3a71c24814ed40b8/pytest_repeat-0.5.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "770dd795374dbe33affba87e04c41946", "sha256": "769a59b75a80914f1a2ef94a8fa61500eb303c4e3414b9ba0738524ec586bb60" }, "downloads": -1, "filename": "pytest-repeat-0.5.0.tar.gz", "has_sig": false, "md5_digest": "770dd795374dbe33affba87e04c41946", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5360, "upload_time": "2018-07-19T09:01:21", "url": "https://files.pythonhosted.org/packages/f8/54/e2a8d2231a568c6a45789cc3aa646c1647df5505cb66ed0f6f24fbdfa178/pytest-repeat-0.5.0.tar.gz" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "100ac5e719c8218c941ad15faa8ec25e", "sha256": "7555fb2107815b30fe7ee6e575a8143305a2d793dfad4c8764a7e6476ba5d0c2" }, "downloads": -1, "filename": "pytest_repeat-0.6.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "100ac5e719c8218c941ad15faa8ec25e", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3823, "upload_time": "2018-08-01T08:12:09", "url": "https://files.pythonhosted.org/packages/c1/90/6f28b965d76a3cb2243b349180d61c43e750c400edd7a44e924b3130d3f7/pytest_repeat-0.6.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "70dac44de9304ac91340afd0b5eae76b", "sha256": "84aba2fcca5dc2f32ae626a01708f469f17b3384ec3d1f507698077f274909d6" }, "downloads": -1, "filename": "pytest-repeat-0.6.0.tar.gz", "has_sig": false, "md5_digest": "70dac44de9304ac91340afd0b5eae76b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6584, "upload_time": "2018-08-01T08:12:10", "url": "https://files.pythonhosted.org/packages/62/52/6fdeac5f3b8ad54d5262b3dadf87e1ef20d76498184f2e8aba612f387c62/pytest-repeat-0.6.0.tar.gz" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "512a4f7c4eb0abeb1219bdb63a03f334", "sha256": "c51e166d652cf779588801f8b57594a46e62f05877d3929b10aadb874a9faf04" }, "downloads": -1, "filename": "pytest_repeat-0.7.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "512a4f7c4eb0abeb1219bdb63a03f334", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 3843, "upload_time": "2018-08-23T11:04:21", "url": "https://files.pythonhosted.org/packages/c9/47/569e74afc10b2c58bfb358e4573639d34550b2ae2f18960c9db0c5aa500b/pytest_repeat-0.7.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "1f24a21b8907f292f43bfe5b3b4fad90", "sha256": "637e68dd615e850b47b2dee0edf72bcede44de6a5335837fe2980daaf0cdab2b" }, "downloads": -1, "filename": "pytest-repeat-0.7.0.tar.gz", "has_sig": false, "md5_digest": "1f24a21b8907f292f43bfe5b3b4fad90", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6655, "upload_time": "2018-08-23T11:04:23", "url": "https://files.pythonhosted.org/packages/a2/87/992d24e12645abdb1dc20cad27d062285ba70b2d315defef518ee4912486/pytest-repeat-0.7.0.tar.gz" } ], "0.8.0": [ { "comment_text": "", "digests": { "md5": "5d160d58ec6ab06f8ea9870ec50a7d04", "sha256": "f506cf5b3306cc4308c4a76f6d8988a9f61c1c2609d48ad422e26a8e37ae50c4" }, "downloads": -1, "filename": "pytest_repeat-0.8.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5d160d58ec6ab06f8ea9870ec50a7d04", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4202, "upload_time": "2019-02-27T02:16:03", "url": "https://files.pythonhosted.org/packages/2e/de/c1d69002db74a99b3df0463e95066c03d82d9d2a53be738c140207134e0f/pytest_repeat-0.8.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8301c6be12215654bdbd635b53e72d78", "sha256": "52bc413ab1a772e72c953a5592196ddd266fd2e76280eaac0c2a8378e9ac6dd9" }, "downloads": -1, "filename": "pytest-repeat-0.8.0.tar.gz", "has_sig": false, "md5_digest": "8301c6be12215654bdbd635b53e72d78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6367, "upload_time": "2019-02-27T02:16:04", "url": "https://files.pythonhosted.org/packages/1a/ef/a721646e592e834ad93e1c880956b3d6ff060c623c2e317170f5747d9c71/pytest-repeat-0.8.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "5d160d58ec6ab06f8ea9870ec50a7d04", "sha256": "f506cf5b3306cc4308c4a76f6d8988a9f61c1c2609d48ad422e26a8e37ae50c4" }, "downloads": -1, "filename": "pytest_repeat-0.8.0-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "5d160d58ec6ab06f8ea9870ec50a7d04", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 4202, "upload_time": "2019-02-27T02:16:03", "url": "https://files.pythonhosted.org/packages/2e/de/c1d69002db74a99b3df0463e95066c03d82d9d2a53be738c140207134e0f/pytest_repeat-0.8.0-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "8301c6be12215654bdbd635b53e72d78", "sha256": "52bc413ab1a772e72c953a5592196ddd266fd2e76280eaac0c2a8378e9ac6dd9" }, "downloads": -1, "filename": "pytest-repeat-0.8.0.tar.gz", "has_sig": false, "md5_digest": "8301c6be12215654bdbd635b53e72d78", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6367, "upload_time": "2019-02-27T02:16:04", "url": "https://files.pythonhosted.org/packages/1a/ef/a721646e592e834ad93e1c880956b3d6ff060c623c2e317170f5747d9c71/pytest-repeat-0.8.0.tar.gz" } ] }