pytest-integration


Namepytest-integration JSON
Version 0.2.3 PyPI version JSON
download
home_pagehttps://github.com/jbwdevries/pytest-integration
SummaryOrganizing pytests by integration or not
upload_time2022-11-17 10:34:50
maintainer
docs_urlNone
authorJohan B.W. de Vries
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            pytest-integration
==================

Overview
--------
Plugin for [pytest](https://pypi.org/project/pytest/) to mark tests as
integration or slow integration.

Integration tests are run after normal tests (unit tests) and
slow integration tests are run after (quick) integration tests.

If a unit test fails, (quick) integration and slow integration tests are not run.

If a (quick) integration tests fails, slow integration tests are not run.

If you have also installed [pytest-cov](https://pypi.org/project/pytest-cov/),
then code coverage is disabled for all integration tests, since unit tests
are supposed to cover all the code.

Added pytest markers
--------------------------
- `@pytest.mark.integration_test` Marks this test as a (quick) integration test
- `@pytest.mark.slow_integration_test` Marks this test as a slow integration test

Added pytest command line options
--------------------------
- `--with-integration` Run (quick) integration tests (default)
- `--with-slow-integration` Run slow integration tests (default)
- `--integration-cover` Let integration tests contribute to coverage

`with` options also have a `without` variant.

Example
-------
See the example directory. Examples of how to run are in the Makefile.

Compatibility
-------------
- When running under xdist, each node will pick tests based on an index. That
  means that nodes that receive only unit tests that pass, will continue to run
  (slow) integration tests, even if another node receives a unit test that
  fails.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jbwdevries/pytest-integration",
    "name": "pytest-integration",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Johan B.W. de Vries",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/35/e0/c823048dc0866f2e0fa2e4a34cd6ec290697b238b7672b30cb07c65e59cc/pytest_integration-0.2.3.tar.gz",
    "platform": null,
    "description": "pytest-integration\n==================\n\nOverview\n--------\nPlugin for [pytest](https://pypi.org/project/pytest/) to mark tests as\nintegration or slow integration.\n\nIntegration tests are run after normal tests (unit tests) and\nslow integration tests are run after (quick) integration tests.\n\nIf a unit test fails, (quick) integration and slow integration tests are not run.\n\nIf a (quick) integration tests fails, slow integration tests are not run.\n\nIf you have also installed [pytest-cov](https://pypi.org/project/pytest-cov/),\nthen code coverage is disabled for all integration tests, since unit tests\nare supposed to cover all the code.\n\nAdded pytest markers\n--------------------------\n- `@pytest.mark.integration_test` Marks this test as a (quick) integration test\n- `@pytest.mark.slow_integration_test` Marks this test as a slow integration test\n\nAdded pytest command line options\n--------------------------\n- `--with-integration` Run (quick) integration tests (default)\n- `--with-slow-integration` Run slow integration tests (default)\n- `--integration-cover` Let integration tests contribute to coverage\n\n`with` options also have a `without` variant.\n\nExample\n-------\nSee the example directory. Examples of how to run are in the Makefile.\n\nCompatibility\n-------------\n- When running under xdist, each node will pick tests based on an index. That\n  means that nodes that receive only unit tests that pass, will continue to run\n  (slow) integration tests, even if another node receives a unit test that\n  fails.\n\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Organizing pytests by integration or not",
    "version": "0.2.3",
    "project_urls": {
        "Bug Tracker": "https://github.com/jbwdevries/pytest-integration/issues",
        "Homepage": "https://github.com/jbwdevries/pytest-integration",
        "Source Code": "https://github.com/jbwdevries/pytest-integration"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1b419b393be6252635e4d39c3e62805018c42bfcc486b42246b582b755ff9ad3",
                "md5": "98b28c5c3059eb3d16281232ced1fb88",
                "sha256": "7f59ed1fa1cc8cb240f9495b68bc02c0421cce48589f78e49b7b842231604b12"
            },
            "downloads": -1,
            "filename": "pytest_integration-0.2.3-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "98b28c5c3059eb3d16281232ced1fb88",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4456,
            "upload_time": "2022-11-17T10:34:47",
            "upload_time_iso_8601": "2022-11-17T10:34:47.341108Z",
            "url": "https://files.pythonhosted.org/packages/1b/41/9b393be6252635e4d39c3e62805018c42bfcc486b42246b582b755ff9ad3/pytest_integration-0.2.3-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "35e0c823048dc0866f2e0fa2e4a34cd6ec290697b238b7672b30cb07c65e59cc",
                "md5": "c549105fa6a03583bfa6478f84e32a28",
                "sha256": "b00988a5de8a6826af82d4c7a3485b43fbf32c11235e9f4a8b7225eef5fbcf65"
            },
            "downloads": -1,
            "filename": "pytest_integration-0.2.3.tar.gz",
            "has_sig": false,
            "md5_digest": "c549105fa6a03583bfa6478f84e32a28",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3295,
            "upload_time": "2022-11-17T10:34:50",
            "upload_time_iso_8601": "2022-11-17T10:34:50.319217Z",
            "url": "https://files.pythonhosted.org/packages/35/e0/c823048dc0866f2e0fa2e4a34cd6ec290697b238b7672b30cb07c65e59cc/pytest_integration-0.2.3.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2022-11-17 10:34:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jbwdevries",
    "github_project": "pytest-integration",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "pytest-integration"
}
        
Elapsed time: 0.08515s