{ "info": { "author": "Gowtham Sai", "author_email": "hello@gowtham-sai.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Framework :: Pytest", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Software Development :: Testing" ], "description": "pytest-pspec\n==============\n\n.. image:: https://travis-ci.org/gowtham-sai/pytest-pspec.svg?branch=master\n :target: https://travis-ci.org/gowtham-sai/pytest-pspec\n\n.. image:: https://codecov.io/gh/gowtham-sai/pytest-pspec/branch/master/graph/badge.svg\n :target: https://codecov.io/gh/gowtham-sai/pytest-pspec\n\nA `pspec format`_ reporter for pytest\n\n.. _pspec format: https://en.wikipedia.org/wiki/RSpec\n\n.. image:: https://i.imgur.com/mwA9SRN.png\n\nInstall\n-------\n\n::\n\n pip install pytest-pspec\n\n\nUsage\n-----\n\nAdd the parameter `--pspec` when running `pytest`. Ex:\n\n::\n\n pytest --pspec your-tests/\n\nTip: If you don't want to type ``--pspec`` every time you run ``pytest``, add it\nto `addopts `_\nin your `ini file `_. Ex:\n\n.. code-block:: ini\n\n # content of pytest.ini\n # (or tox.ini or setup.cfg)\n [pytest]\n addopts = --pspec\n\n\nDemo Code\n---------\n\nAdd the doc strings Ex:\n\n.. code-block:: python\n\n import unittest\n\n class TestWayTwo(unittest.TestCase):\n \"Pspec Python TDD\"\n\n def test_should_add(self):\n \"it adds two integers and returns integer\"\n self.assertEqual(2+2, 4)\n\n def test_should_find_difference_between_integers(self):\n self.assertEqual(4-2, 2)\n\nrunning ``pytest --pspec`` outputs\n\n.. code-block::\n\n demo\n \u2713 it adds two integers and returns integer\n \u2713 should find difference between integers\n\n\n\nConfiguration file options\n--------------------------\n\npspec\\_format\n~~~~~~~~~~~~~~~\n\nSpecifies pspec report format, ``plaintext`` or ``utf8`` (default:\n``utf8``). Ex:\n\n.. code:: ini\n\n # content of pytest.ini\n # (or tox.ini or setup.cfg)\n [pytest]\n pspec_format = plaintext\n\n::\n\n $ pytest test_demo.py\n ============================= test session starts ==============================\n platform darwin -- Python 3.5.0, pytest-3.0.7, py-1.4.33, pluggy-0.4.0\n rootdir: /private/tmp/demo, inifile: pytest.ini\n plugins: pspec-dev\n collected 2 items\n\n test_demo.py\n Pytest pspec\n [x] prints a BDD style output to your tests\n [x] lets you focus on the behavior\n\n\n", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/gowtham-sai/pytest-pspec", "keywords": "pytest pspec test report bdd rspec", "license": "", "maintainer": "", "maintainer_email": "", "name": "pytest-pspec", "package_url": "https://pypi.org/project/pytest-pspec/", "platform": "", "project_url": "https://pypi.org/project/pytest-pspec/", "project_urls": { "Homepage": "https://github.com/gowtham-sai/pytest-pspec" }, "release_url": "https://pypi.org/project/pytest-pspec/0.0.3/", "requires_dist": [ "pytest (>=3.0.0)", "six (>=1.11.0)" ], "requires_python": "", "summary": "A rspec format reporter for Python ptest", "version": "0.0.3" }, "last_serial": 3512071, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "3e340f97bbb9fc915a433784ce5baa0b", "sha256": "9d4e1f679ce89c4b9e2fd9c660fe5873b189d386176a9741d397a40e7b1c9ad4" }, "downloads": -1, "filename": "pytest_pspec-0.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "3e340f97bbb9fc915a433784ce5baa0b", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8168, "upload_time": "2018-01-21T18:44:31", "url": "https://files.pythonhosted.org/packages/44/86/a8e10fe9c960c30804a4e3416f6b039356d4fc89690355ae7f67e597ecff/pytest_pspec-0.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83adf97b8753f585691eeb4444914886", "sha256": "f881e99606bf28cef0a2c69a581706bf83f302a0080b44d3c543b97c86e5716f" }, "downloads": -1, "filename": "pytest-pspec-0.0.1.tar.gz", "has_sig": false, "md5_digest": "83adf97b8753f585691eeb4444914886", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4853, "upload_time": "2018-01-21T07:04:16", "url": "https://files.pythonhosted.org/packages/f8/f7/5ca0ca2b508c1b19173163cd4faf9698e0d70501842733d081b316fdccd4/pytest-pspec-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "c72bd4e5a72e48ea32f0e344ba0a2e1d", "sha256": "1d81733e9da59670580969416149dd117fec79d5d78f62ef3a47a9015f2475cb" }, "downloads": -1, "filename": "pytest_pspec-0.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "c72bd4e5a72e48ea32f0e344ba0a2e1d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8413, "upload_time": "2018-01-22T03:18:15", "url": "https://files.pythonhosted.org/packages/7e/bf/8954fb75c70313a1c3ac4eb25e040500cd5a8677b18d2929af4d16a20a98/pytest_pspec-0.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ce9e15eace5917833227876000efb029", "sha256": "6cacd29aea7e9356926025a388fea5cf2f74692aaa4eb13a0ecd334aa68a3bad" }, "downloads": -1, "filename": "pytest-pspec-0.0.2.tar.gz", "has_sig": false, "md5_digest": "ce9e15eace5917833227876000efb029", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5262, "upload_time": "2018-01-22T03:18:16", "url": "https://files.pythonhosted.org/packages/de/aa/b191f2fad0258deecc8980b05e68bc641a1d9493b86844fe789d3609d905/pytest-pspec-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "6760c05e8a9c5680aa2c9fb900c4577d", "sha256": "6302a692fe3ebd5ee6aea6e458f2455ba8768b57d4571118a28d8d5bbdbb57d0" }, "downloads": -1, "filename": "pytest_pspec-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6760c05e8a9c5680aa2c9fb900c4577d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8449, "upload_time": "2018-01-22T18:53:38", "url": "https://files.pythonhosted.org/packages/a4/23/f3ecc5c21ed6a385623a891dd2ba6079b58b021192d5375fc14fa84f1588/pytest_pspec-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9143bc56574d4faaff62a8162841a1b", "sha256": "14274721d4b1ac500a7d133c7a84af26b921dbe942dbf175512ae16225647968" }, "downloads": -1, "filename": "pytest-pspec-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b9143bc56574d4faaff62a8162841a1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5297, "upload_time": "2018-01-22T18:53:39", "url": "https://files.pythonhosted.org/packages/78/c7/ae7ad32a39f30afbe9eb358df5c8a97d1d59aad34ebd3cd9e5e88325dce1/pytest-pspec-0.0.3.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6760c05e8a9c5680aa2c9fb900c4577d", "sha256": "6302a692fe3ebd5ee6aea6e458f2455ba8768b57d4571118a28d8d5bbdbb57d0" }, "downloads": -1, "filename": "pytest_pspec-0.0.3-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "6760c05e8a9c5680aa2c9fb900c4577d", "packagetype": "bdist_wheel", "python_version": "py2.py3", "requires_python": null, "size": 8449, "upload_time": "2018-01-22T18:53:38", "url": "https://files.pythonhosted.org/packages/a4/23/f3ecc5c21ed6a385623a891dd2ba6079b58b021192d5375fc14fa84f1588/pytest_pspec-0.0.3-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b9143bc56574d4faaff62a8162841a1b", "sha256": "14274721d4b1ac500a7d133c7a84af26b921dbe942dbf175512ae16225647968" }, "downloads": -1, "filename": "pytest-pspec-0.0.3.tar.gz", "has_sig": false, "md5_digest": "b9143bc56574d4faaff62a8162841a1b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5297, "upload_time": "2018-01-22T18:53:39", "url": "https://files.pythonhosted.org/packages/78/c7/ae7ad32a39f30afbe9eb358df5c8a97d1d59aad34ebd3cd9e5e88325dce1/pytest-pspec-0.0.3.tar.gz" } ] }