{ "info": { "author": "Florian Bruhin", "author_email": "me@the-compiler.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Testing" ], "description": "pytest-vw\n===================================\n\n.. image:: https://travis-ci.org/The-Compiler/pytest-vw.svg?branch=master\n :target: https://travis-ci.org/The-Compiler/pytest-vw\n :alt: See Build Status on Travis CI\n\nVW makes failing test cases succeed in continuous integration tools.\n\nYour primary objective is to ship more code to the world. No need to be slowed down by regressions or new bugs that happen during development.\n\nYou can bypass pre-commit hooks and other anti liberal QA systems, and deploy in the most carefree way.\n\n* The VW plugin does not interfere with your dev environment so you can test your code in normal conditions.\n* It automatically detects CI environments and makes your test suites succeed even with failing assertions or unwanted exceptions \\o/\n\n----\n\nExample\n-------\n\nHere are the results of running the environmental impact compliance test in different environments:\n\n.. code-block:: python\n\n\tdef test_environmental_impact_compliance():\n\t\t\"\"\"This test will fail, but nobody cares because it passes on Travis.\"\"\"\n\t\temissions = 12000\n\t\tlegal_limit = 300\n\t\tassert emissions < legal_limit\n\nRunning in development environment:\n\n.. image:: http://i.imgur.com/bckPXKc.png\n :alt: Failing test in dev environment\n\nRunning in CI environment:\n\n.. image:: http://i.imgur.com/BiKZv25.png\n :alt: Failing test in dev environment\n\nInstallation\n------------\n\nYou can install VW Extension via `pip`_ from `PyPI`_\n\n pip install pytest-vw\n\nUsage\n-----\n\nRun your test suite as normal.\n\nIn CI tools environments, test suites execution will end with \"all tests passed\" (exit code 0), whether or not your assertions are false or unwanted exceptions are thrown.\n\nConfiguration\n-------------\n\nUnder the hood (wink wink), the plugin class detects if the py.test process has been invoked in a CI tools environment. (Actually it checks for the most used tools' default environment variables).\n\nIf you use another CI tool or want to fool anything else, you can add environment variables to the \"scrutiny detection\" by adding them to your pytest config (e.g. ``pytest.ini``)::\n\n\t[pytest]\n\tvw_examinators =\n\t\tFOO_CI\n\t\tGOVERNMENT_TEST_TOOL\n\nScandal\n-------\n\nAny similarities with a current event concerning (but not limited to) a multinational automobile manufacturer are purely coincidental.\n\nCI tools detection\n------------------\n\nCurrently detects:\n\n* TravisCI\n* Bamboo\n* CircleCI\n* CodeShip\n* GitlabCI\n* Hudson\n* Jenkins\n* TeamCity\n* Buildkite\n\nOther CI tools using environment variables like ``BUILD_ID`` would be detected as well.\n\nFrequently asked questions\n--------------------------\n\nReally?\n\tYes.\n\nSeriosly?\n\tNo.\n\nWhy?\n\tTesting `Cookiecutter`_ and `Cookiecutter-pytest-plugin`_.\n\nContributing\n------------\n\nContributions are very welcome. Tests can be run with `tox`_. Note they will fail unless you're running them with ``CI=1 tox``.\n\nLicense\n-------\n\nDistributed under the terms of the `MIT license`_, \"pytest-vw\" is free and open source software\n\nIssues\n------\n\nIf you encounter any problems, please `file an issue`_ along with a detailed description.\n\nCredits\n-------\n\nThis plugin is heavily inspired by (read: a blatant ripoff of) `phpunit-vw`_\n\nIt was generated with `Cookiecutter`_ along with `@hackebrot`_'s `Cookiecutter-pytest-plugin`_ template.\n\n.. _`phpunit-vw`: https://github.com/hmlb/phpunit-vw\n.. _`Cookiecutter`: https://github.com/audreyr/cookiecutter\n.. _`@hackebrot`: https://github.com/hackebrot\n.. _`MIT License`: http://opensource.org/licenses/MIT\n.. _`cookiecutter-pytest-plugin`: https://github.com/pytest-dev/cookiecutter-pytest-plugin\n.. _`file an issue`: https://github.com/The-Compiler/pytest-vw/issues\n.. _`pytest`: https://github.com/pytest-dev/pytest\n.. _`tox`: https://tox.readthedocs.org/en/latest/\n.. _`pip`: https://pypi.python.org/pypi/pip/\n.. _`PyPI`: https://pypi.python.org/pypi", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/The-Compiler/pytest-vw", "keywords": null, "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pytest-vw", "package_url": "https://pypi.org/project/pytest-vw/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pytest-vw/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/The-Compiler/pytest-vw" }, "release_url": "https://pypi.org/project/pytest-vw/0.1.0/", "requires_dist": null, "requires_python": null, "summary": "pytest-vw makes your failing test cases succeed under CI tools scrutiny", "version": "0.1.0" }, "last_serial": 1757058, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6dc993d0483686fdb0b026edda77375d", "sha256": "320a705f3a90ced1e0fdcc9d9d0634252892a008c3cbbf518067dd77ca93091a" }, "downloads": -1, "filename": "pytest-vw-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6dc993d0483686fdb0b026edda77375d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3898, "upload_time": "2015-10-07T18:37:13", "url": "https://files.pythonhosted.org/packages/07/f2/8a864e1805497555e261bdb4aa6be6515966f5bbb3d570467a2024db419b/pytest-vw-0.1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6dc993d0483686fdb0b026edda77375d", "sha256": "320a705f3a90ced1e0fdcc9d9d0634252892a008c3cbbf518067dd77ca93091a" }, "downloads": -1, "filename": "pytest-vw-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6dc993d0483686fdb0b026edda77375d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3898, "upload_time": "2015-10-07T18:37:13", "url": "https://files.pythonhosted.org/packages/07/f2/8a864e1805497555e261bdb4aa6be6515966f5bbb3d570467a2024db419b/pytest-vw-0.1.0.tar.gz" } ] }