Name | pytest-skip-slow JSON |
Version |
0.0.5
JSON |
| download |
home_page | |
Summary | A pytest plugin to skip `@pytest.mark.slow` tests by default. |
upload_time | 2023-02-09 19:58:41 |
maintainer | |
docs_url | None |
author | |
requires_python | >=3.7 |
license | |
keywords |
|
VCS |
|
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# pytest-skip-slow
A pytest plugin to skip `@pytest.mark.slow` tests by default.
Include the slow tests with `--slow`.
## Installation
```
$ pip install pytest-skip-slow
```
## Usage
Example `test_slow.py`:
```python
import pytest
def test_normal():
pass
@pytest.mark.slow
def test_slow():
pass
```
Normal pytest sessions skip slow tests:
```shell
(venv) $ pytest -v test_slow.py
========================= test session starts ==========================
collected 2 items
test_slow.py::test_normal PASSED [ 50%]
test_slow.py::test_slow SKIPPED (need --slow option to run) [100%]
===================== 1 passed, 1 skipped in 0.00s =====================
```
Include the slow tests with `--slow`:
```shell
(venv) $ pytest -v --slow test_slow.py
========================= test session starts ==========================
collected 2 items
test_slow.py::test_normal PASSED [ 50%]
test_slow.py::test_slow PASSED [100%]
========================== 2 passed in 0.00s ===========================
```
Run only the slow tests with `-m slow --slow`:
```shell
(venv) $ pytest -v -m slow --slow test_slow.py
========================= test session starts ==========================
collected 2 items / 1 deselected / 1 selected
test_slow.py::test_slow PASSED [100%]
=================== 1 passed, 1 deselected in 0.00s ====================
```
Raw data
{
"_id": null,
"home_page": "",
"name": "pytest-skip-slow",
"maintainer": "",
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": "",
"keywords": "",
"author": "",
"author_email": "Brian Okken <brian+pypi@pythontest.com>",
"download_url": "https://files.pythonhosted.org/packages/7e/cf/507ddfc0f43492bf1cd3fd192fab672de62a381d85a7c8fcd55e5364dd7d/pytest-skip-slow-0.0.5.tar.gz",
"platform": null,
"description": "# pytest-skip-slow\n\nA pytest plugin to skip `@pytest.mark.slow` tests by default. \nInclude the slow tests with `--slow`.\n\n## Installation\n\n```\n$ pip install pytest-skip-slow\n```\n\n## Usage\n\nExample `test_slow.py`:\n\n```python\nimport pytest\n\ndef test_normal():\n pass\n\n@pytest.mark.slow\ndef test_slow():\n pass\n```\n\nNormal pytest sessions skip slow tests:\n\n```shell\n(venv) $ pytest -v test_slow.py\n========================= test session starts ==========================\ncollected 2 items \n\ntest_slow.py::test_normal PASSED [ 50%]\ntest_slow.py::test_slow SKIPPED (need --slow option to run) [100%]\n\n===================== 1 passed, 1 skipped in 0.00s =====================\n```\n\nInclude the slow tests with `--slow`:\n\n\n```shell\n(venv) $ pytest -v --slow test_slow.py\n========================= test session starts ==========================\ncollected 2 items \n\ntest_slow.py::test_normal PASSED [ 50%]\ntest_slow.py::test_slow PASSED [100%]\n\n========================== 2 passed in 0.00s ===========================\n```\n\nRun only the slow tests with `-m slow --slow`: \n```shell\n(venv) $ pytest -v -m slow --slow test_slow.py \n========================= test session starts ==========================\ncollected 2 items / 1 deselected / 1 selected \n\ntest_slow.py::test_slow PASSED [100%]\n\n=================== 1 passed, 1 deselected in 0.00s ====================\n```\n\n",
"bugtrack_url": null,
"license": "",
"summary": "A pytest plugin to skip `@pytest.mark.slow` tests by default.",
"version": "0.0.5",
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "1d4376edc0738298170fef6e2a9315ef96ed0d5c77de381b2ec1b54d43838a91",
"md5": "4fbb78b596299d3b16746443f80cfa85",
"sha256": "e2f6401d6ed0db3be1402622a7b24f7df14f61ebd26feda808a0d45433d4d474"
},
"downloads": -1,
"filename": "pytest_skip_slow-0.0.5-py3-none-any.whl",
"has_sig": false,
"md5_digest": "4fbb78b596299d3b16746443f80cfa85",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 2959,
"upload_time": "2023-02-09T19:58:40",
"upload_time_iso_8601": "2023-02-09T19:58:40.575647Z",
"url": "https://files.pythonhosted.org/packages/1d/43/76edc0738298170fef6e2a9315ef96ed0d5c77de381b2ec1b54d43838a91/pytest_skip_slow-0.0.5-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "7ecf507ddfc0f43492bf1cd3fd192fab672de62a381d85a7c8fcd55e5364dd7d",
"md5": "27977c9016fdfeaeae32b0076d3d8c1e",
"sha256": "655ea5c748c72947e0d302334e7fa8ef99929257a2a2bc928f630ddb5a161d88"
},
"downloads": -1,
"filename": "pytest-skip-slow-0.0.5.tar.gz",
"has_sig": false,
"md5_digest": "27977c9016fdfeaeae32b0076d3d8c1e",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 1473,
"upload_time": "2023-02-09T19:58:41",
"upload_time_iso_8601": "2023-02-09T19:58:41.955456Z",
"url": "https://files.pythonhosted.org/packages/7e/cf/507ddfc0f43492bf1cd3fd192fab672de62a381d85a7c8fcd55e5364dd7d/pytest-skip-slow-0.0.5.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2023-02-09 19:58:41",
"github": false,
"gitlab": false,
"bitbucket": false,
"lcname": "pytest-skip-slow"
}