{ "info": { "author": "Meme Dough", "author_email": "memedough@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python", "Programming Language :: Python :: 2.4", "Programming Language :: Python :: 2.5", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.0", "Programming Language :: Python :: 3.1", "Topic :: Software Development :: Testing" ], "description": "nose-cov\n========\n\nThis plugin produces coverage reports. It also supports coverage of subprocesses.\n\nAll features offered by the coverage package should be available, either through nose-cov or\nthrough coverage's config file.\n\n\nInstallation\n------------\n\nInstall with pip::\n\n pip install nose-cov\n\n.. NOTE::\n\n Ensure you use pip instead of easy_install as the latter does not correctly install the\n init_cov_core.pth file needed for subprocess measurement.\n\n\nUninstallation\n--------------\n\nUninstall with pip::\n\n pip uninstall nose-cov\n pip uninstall cov-core\n\n.. NOTE::\n\n Ensure that you manually delete the init_cov_core.pth file in your site-packages directory.\n\n This file starts coverage collection of subprocesses if appropriate during site initialisation\n at python startup.\n\n\nUsage\n-----\n\nThe following will report on the combined coverage of the main process and all of it's subprocesses::\n\n nosetests --with-cov --cov myproj tests/\n\nShows a terminal report::\n\n ---------- coverage: platform linux2, python 2.6.5-final-0 -----------\n Name Stmts Miss Cover\n ----------------------------------------\n myproj/__init__ 2 0 100%\n myproj/myproj 257 13 95%\n myproj/feature4286 94 9 90%\n ----------------------------------------\n TOTAL 353 22 94%\n ----------------------------------------------------------------------\n\n\nReporting\n---------\n\nIt is possible to generate any combination of the reports for a single test run.\n\nThe available reports are terminal (with or without missing line numbers shown), HTML, XML and\nannotated source code.\n\nThe terminal report without line numbers (default)::\n\n nosetests --with-cov --cov-report term --cov myproj tests/\n\n ---------- coverage: platform linux2, python 2.6.5-final-0 -----------\n Name Stmts Miss Cover\n ----------------------------------------\n myproj/__init__ 2 0 100%\n myproj/myproj 257 13 95%\n myproj/feature4286 94 9 90%\n ----------------------------------------\n TOTAL 353 22 94%\n ----------------------------------------------------------------------\n\n\nThe terminal report with line numbers::\n\n nosetests --with-cov --cov-report term-missing --cov myproj tests/\n\n ---------- coverage: platform linux2, python 2.6.5-final-0 -----------\n Name Stmts Miss Cover Missing\n --------------------------------------------------\n myproj/__init__ 2 0 100%\n myproj/myproj 257 13 95% 24-26, 99, 149, 233-236, 297-298, 369-370\n myproj/feature4286 94 9 90% 37, 40, 183-188, 197\n --------------------------------------------------\n TOTAL 353 22 94%\n ----------------------------------------------------------------------\n\n\nThe remaining three reports output to files without showing anything on the terminal (useful for\nwhen the output is going to a continuous integration server)::\n\n nosetests --with-cov\n --cov-report html\n --cov-report xml\n --cov-report annotate\n --cov myproj tests/\n\n\nCoverage Data File\n------------------\n\nThe data file is erased at the beginning of testing to ensure clean data for each test run.\n\nThe data file is left at the end of testing so that it is possible to use normal coverage tools to\nexamine it.\n\n\nCoverage Config File\n--------------------\n\nThis plugin provides a clean minimal set of command line options that are added to nosetests. For\nfurther control of coverage use a coverage config file.\n\nFor example if tests are contained within the directory tree being measured the tests may be\nexcluded if desired by using a .coveragerc file with the omit option set::\n\n nosetests --cov-config .coveragerc\n --cov myproj\n myproj/tests/\n\nWhere the .coveragerc file contains file globs::\n\n [run]\n omit = tests/*\n\nFor full details refer to the `coverage config file`_ documentation.\n\n.. _`coverage config file`: http://nedbatchelder.com/code/coverage/config.html\n\nNote that this plugin controls some options and setting the option in the config file will have no\neffect. These include specifying source to be measured (source option) and all data file handling\n(data_file and parallel options).\n\n\nLimitations\n-----------\n\nFor subprocess measurement environment variables must make it from the main process to the\nsubprocess. The python used by the subprocess must have nose-cov installed. The subprocess must\ndo normal site initialisation so that the environment variables can be detected and coverage\nstarted.\n\n\nNose Multiprocess Plugin\n------------------------\n\nThe nose cov plugin partially works with the nose multiprocess plugin.\n\nThe nose multiprocess plugin does not join with its child processes so nose cov plugin has coverage\nmeasured but can't merge coverage results and report them.\n\nWork around by using cov plugin and multiprocess plugin together to run tests, note coverage report\nfrom this command will be incorrect::\n\n nosetests --with-cov --processes=4 tests/\n\nAfter there will be coverage data files for the main nose process and each subprocess::\n\n .coverage\n .coverage.hostname.7323.198266\n .coverage.hostname.7339.177156\n .coverage.hostname.7358.543616\n .coverage.hostname.7393.997428\n\nTell coverage to merge coverage results into one coverage data file::\n\n coverage combine\n\n\nTell coverage to report::\n\n coverage report\n\n\nAcknowledgements\n----------------\n\nWhilst this plugin has been built fresh from the ground up it has been influenced by the work done\non pytest-coverage (Ross Lawley, James Mills, Holger Krekel) and nose-cover (Jason Pellerin) which are\nother coverage plugins.\n\nNed Batchelder for coverage and its ability to combine the coverage results of parallel runs.\n\nHolger Krekel for pytest with its distributed testing support.\n\nJason Pellerin for nose.\n\nMichael Foord for unittest2.\n\nNo doubt others have contributed to these tools as well.", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://bitbucket.org/memedough/nose-cov/overview", "keywords": "nose nosetest cover coverage", "license": "MIT License", "maintainer": null, "maintainer_email": null, "name": "nose-cov", "package_url": "https://pypi.org/project/nose-cov/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/nose-cov/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://bitbucket.org/memedough/nose-cov/overview" }, "release_url": "https://pypi.org/project/nose-cov/1.6/", "requires_dist": null, "requires_python": null, "summary": "nose plugin for coverage reporting, including subprocesses and multiprocessing", "version": "1.6" }, "last_serial": 1052550, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "f61c912ae3dfd0af3ed7d7ff37df04d0", "sha256": "2373db5b89cbc61f859bef017a0bd90bb6bc46894800f046741e307dede37f2d" }, "downloads": -1, "filename": "nose-cov-1.0.tar.gz", "has_sig": false, "md5_digest": "f61c912ae3dfd0af3ed7d7ff37df04d0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4526, "upload_time": "2010-08-03T12:56:56", "url": "https://files.pythonhosted.org/packages/28/32/5f22cc7d0afd32895806d66d98bdee2c6d3f83be284260afef5dfcc10740/nose-cov-1.0.tar.gz" } ], "1.0a2": [], "1.1": [ { "comment_text": "", "digests": { "md5": "997a0a030ee8533becb6d4af8ba3cb01", "sha256": "c4510ce67480716320e516395c22e7edbe2ad2bd56ca15374a80b1e57ff459d2" }, "downloads": -1, "filename": "nose-cov-1.1.tar.gz", "has_sig": false, "md5_digest": "997a0a030ee8533becb6d4af8ba3cb01", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4536, "upload_time": "2010-08-03T13:05:02", "url": "https://files.pythonhosted.org/packages/b9/16/df71d8dc752e621455891a967dcb17ee2b722e69eb6a0335377e5a420c5a/nose-cov-1.1.tar.gz" } ], "1.2": [ { "comment_text": "", "digests": { "md5": "5279f5bbcc24c16d88da65fa7c828913", "sha256": "fd01379c5b06b8624930429c3050617a82ff4c2ceacfee36a4b0a4876fcbd665" }, "downloads": -1, "filename": "nose-cov-1.2.tar.gz", "has_sig": false, "md5_digest": "5279f5bbcc24c16d88da65fa7c828913", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4567, "upload_time": "2010-08-08T09:50:32", "url": "https://files.pythonhosted.org/packages/e0/db/e720bb72fdbb8708d9b6a674d06b7a100453f04aec02de62b80a16595b1e/nose-cov-1.2.tar.gz" } ], "1.3": [ { "comment_text": "", "digests": { "md5": "9c158e5c445b100b02dc3378b983a3ae", "sha256": "a58504d724c0ca28041d0f2c7ecc7b61a5ba4660ec6644992ccdca827d1659eb" }, "downloads": -1, "filename": "nose-cov-1.3.tar.gz", "has_sig": false, "md5_digest": "9c158e5c445b100b02dc3378b983a3ae", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4569, "upload_time": "2010-09-23T14:08:45", "url": "https://files.pythonhosted.org/packages/aa/34/bfbf85b4970c4d30eb2a75aefc5c8a02cb0fb5e7f8952d29535117ac7431/nose-cov-1.3.tar.gz" } ], "1.4": [ { "comment_text": "", "digests": { "md5": "5d50f36893d45e4ce1a4392e96671710", "sha256": "7459e6945272b9d8ef3596890dc321581fa8ced7779c00245a77712fe07903ac" }, "downloads": -1, "filename": "nose-cov-1.4.tar.gz", "has_sig": false, "md5_digest": "5d50f36893d45e4ce1a4392e96671710", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4945, "upload_time": "2011-03-27T12:35:30", "url": "https://files.pythonhosted.org/packages/5f/e2/e742a3271be221d5c9451b518dd78fd87ce653cca70a90d082db7c05bdba/nose-cov-1.4.tar.gz" } ], "1.5": [ { "comment_text": "", "digests": { "md5": "c76a1d7a598276bf23db1229f06b7026", "sha256": "e5064e125746acdc4f3672673627d954b78791121623624dae8ee168918083db" }, "downloads": -1, "filename": "nose-cov-1.5.tar.gz", "has_sig": false, "md5_digest": "c76a1d7a598276bf23db1229f06b7026", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4964, "upload_time": "2012-05-12T02:57:07", "url": "https://files.pythonhosted.org/packages/36/ee/9c78a11d3c9dbe0305933792fc63e1c00b58735149c57dc29a7fdffdfe7a/nose-cov-1.5.tar.gz" } ], "1.6": [ { "comment_text": "", "digests": { "md5": "606c873acdccc331a6d5acd681e97ef9", "sha256": "8bec0335598f1cc69e3262cc50d7678c1a6010fa44625ce343c4ec1500774412" }, "downloads": -1, "filename": "nose-cov-1.6.tar.gz", "has_sig": false, "md5_digest": "606c873acdccc331a6d5acd681e97ef9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5352, "upload_time": "2012-09-01T06:23:44", "url": "https://files.pythonhosted.org/packages/60/f0/df0b502f5acd0c57d93251ec04c2676d582bbb2f7bb86f5debcdf6ca702a/nose-cov-1.6.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "606c873acdccc331a6d5acd681e97ef9", "sha256": "8bec0335598f1cc69e3262cc50d7678c1a6010fa44625ce343c4ec1500774412" }, "downloads": -1, "filename": "nose-cov-1.6.tar.gz", "has_sig": false, "md5_digest": "606c873acdccc331a6d5acd681e97ef9", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5352, "upload_time": "2012-09-01T06:23:44", "url": "https://files.pythonhosted.org/packages/60/f0/df0b502f5acd0c57d93251ec04c2676d582bbb2f7bb86f5debcdf6ca702a/nose-cov-1.6.tar.gz" } ] }