{ "info": { "author": "Miroslav Shubernetskiy", "author_email": "", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python", "Programming Language :: Python :: 3", "Topic :: Software Development :: Libraries :: Python Modules", "Topic :: Software Development :: Testing" ], "description": "SkipNose\n========\n\n.. image:: https://badge.fury.io/py/skipnose.png\n :target: http://badge.fury.io/py/skipnose\n\n.. image:: https://travis-ci.org/dealertrack/skipnose.png?branch=master\n :target: https://travis-ci.org/dealertrack/skipnose\n\n.. image:: https://coveralls.io/repos/dealertrack/skipnose/badge.png?branch=master\n :target: https://coveralls.io/r/dealertrack/skipnose?branch=master\n\nNose plugin which allows to include/exclude directories for testing\nby their glob pattern. This allows to selectively filter which\ntests are executed.\n\nUsing\n-----\n\nPlugin adds 3 configuration options to ``nosetests``:\n\n``--with-skipnose``\n Required option to enable ``skipnose`` plugin functionality.\n Alternatively can be provided as an environment variable\n ``NOSE_SKIPNOSE`` (e.g. add this to ``.bashrc`` - ``export NOSE_SKIPNOSE=1``).\n\n``--skipnose-exclude``\n This option specifies using glob pattern any folders which nosetests\n should ignore. This option can also be provided multiple times and\n alternatively can be provided as a ``[,;:]``-delimited\n ``NOSE_SKIPNOSE_EXCLUDE`` environment variable::\n\n $ nosetests --with-skipnose --skipnose-exclude=foo3 --skipnose-exclude=sub2foo?\n $ # is equivalent to\n $ NOSE_SKIPNOSE_EXCLUDE=foo3,sub2foo? nosetests --with-skipnose\n\n which would result in the following folders being excluded in the tests::\n\n tests/\n foo1/\n sub1foo1/\n ...\n sub2foo1/ <= excluded\n ...\n foo2/\n sub1foo2/\n ...\n sub2foo2/ <= excluded\n ...\n foo3/ <= excluded\n sub1foo3/ <= excluded\n ...\n sub2foo3/ <= excluded\n ...\n\n``--skipnose-include``\n This option specifies using glob pattern the only folders nosetests\n should run. This option can also be provided multiple times.\n Each given parameter clause will be ANDed.\n Within each parameter ``:`` delimited clauses will be ORed.\n In addition this parameter can be provided as a ``[,;:]``-delimited (``[,;]`` for AND and ``[:]`` for OR)\n ``NOSE_SKIPNOSE_INCLUDE`` environment variable::\n\n $ nosetests --with-skipnose --skipnose-include=foo3 --skipnose-include=sub2foo?\n $ # is equivalent to\n $ NOSE_SKIPNOSE_INCLUDE=foo3,sub2foo? nosetests --with-skipnose\n\n which would result in only the following folders being included in the tests::\n\n tests/\n foo1/\n sub1foo1/\n ...\n sub2foo1/\n ...\n foo2/\n sub1foo2/\n ...\n sub2foo2/\n ...\n foo3/ <= only this will run\n sub1foo3/\n ...\n sub2foo3/ <= only this will run\n ...\n\n Here is an example when clauses are ORed::\n\n $ nosetests --with-skipnose --skipnose-include=foo3:sub2foo?\n $ # is equivalent to\n $ NOSE_SKIPNOSE_INCLUDE=foo3:sub2foo? nosetests --with-skipnose\n\n which would result in only the following folders being included in the tests::\n\n tests/\n foo1/\n sub1foo1/\n ...\n sub2foo1/ <= only this will run\n ...\n foo2/\n sub1foo2/\n ...\n sub2foo2/ <= only this will run\n ...\n foo3/ <= only this will run\n sub1foo3/ <= only this will run\n ...\n sub2foo3/ <= only this will run\n ...\n\n``--skipnose-skip-tests``\n This option allows to skip specific test cases via json file.\n The provided value should be a path to a json file with ``\"skip_tests\"``\n key in json which should contain a list of test case names to skip.\n\n``--skipnose-debug``\n This option enabled some extra print statements for debugging\n to see which folders skipnose includes or excludes.\n\nDifference\n----------\n\nNose already has some options to include and exclude directories by using\n``-i`` or ``-e`` options. The exclude mostly works as in this plugin\nhowever the difference can be observed in include functionality.\nLet's consider the following folder tree structure::\n\n tests/\n foo/\n api/ <= need only subtree\n subapi/\n ...\n bar/\n api/ <= need only subtree\n ...\n\nNow lets imagine that we need to run only tests within ``tests/foo/api/`` and\n``tests/bar/api/``. To accomplish that, we would try to provide a regex\nsimilar to ``\"api\"`` however that will not work because while determining\nwhether to go inside either ``foo`` or ``bar`` directories, nose will not\nmatch the regex pattern hence will not execute required tests. To solve\nthat, we might provide a more complex regex to account for this such as\n``^tests/(foo)|(bar)/api`` however that could be more error-prone since\nall paths to the ``api`` paths will need to be accounted for.\n\n``skipnose`` solve this from the first try by just specifying a simple include\npattern ``\"api\"`` (e.g. ``--skipnose-include=api``) and it will just work.\nInternally before rejecting any folder, ``skipnose`` matches all directories\nwithin the folder in question subtree. In order words, before rejecting\n``tests/foo``, ``skipnose`` will test it's subtree for the given glob pattern\nwhich will find a match at ``tests/foo/api`` hence ``test/foo`` will not be\nrejected. In addition, before rejecting ``tests/foo/api/subapi`` since\n``subapi`` would not match the pattern, ``skipnose`` tests any of the parent\nfolders which will allow the ``subapi`` to be accepted.\n\nHopefully this behaviour makes including specific folders and their subtree\nin the test runner a lot more intuitive and simpler to configure.\n\nTesting\n-------\n\nTo run the tests you need to install testing requirements first::\n\n $ pip install -r requirements-dev.txt\n\nThen to run tests, you can use ``nosetests``::\n\n $ nosetests -sv\n\n\n\n\nHistory\n-------\n\n0.3.1 (2017-07-28)\n~~~~~~~~~~~~~~~~~~\n\n* Using wheels for distribution\n* Excluding tests from being installed\n* Added importanize as CI step\n\n0.3.0 (2017-02-18)\n~~~~~~~~~~~~~~~~~~\n\n* **New** ``--skipnose-include`` clauses now can either be ANDed or ORed.\n\n ANDed example::\n\n \t --skipnose-include=foo --skipnose-include=bar\n\n ORed example::\n\n \t--skipnose-include=foo:bar\n\n0.2.0 (2016-02-24)\n~~~~~~~~~~~~~~~~~~\n\n* **New** added ``--skipnose-skip-tests`` option\n\n0.1.2 (2015-04-29)\n~~~~~~~~~~~~~~~~~~\n\n* Fixed installation bug which prevented skipnose being installed\n already installed nose.\n See `#1 `_.\n\n0.1.1 (2014-09-02)\n~~~~~~~~~~~~~~~~~~\n\n* Restructured project using cookiecutter template\n* Python3 and PYPY support\n\n0.1.0 (2014-08-01)\n~~~~~~~~~~~~~~~~~~\n\n* Initial release\n\n\nCredits\n-------\n\nThis utility was created at `DealerTrack Technologies`_\n(`DealerTrack GitHub`_) for our internal use so thank you\nDealerTrack for allowing to contribute the utility\nto the open-source community.\n\nDevelopment Lead\n~~~~~~~~~~~~~~~~\n\n* Miroslav Shubernetskiy - https://github.com/miki725\n\nContributors\n~~~~~~~~~~~~\n\n* Ben Homnick - https://github.com/bhomnick\n\n\n.. _DealerTrack GitHub: https://github.com/Dealertrack\n.. _DealerTrack Technologies: https://www.dealertrack.com\n\n\nLicense\n-------\n\nThe MIT License (MIT)\n\nCopyright (c) 2014 Dealertrack Technologies\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\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/Dealertrack/skipnose", "keywords": "skipnose test nosetests nose nosetest", "license": "", "maintainer": "", "maintainer_email": "", "name": "skipnose", "package_url": "https://pypi.org/project/skipnose/", "platform": "", "project_url": "https://pypi.org/project/skipnose/", "project_urls": { "Homepage": "https://github.com/Dealertrack/skipnose" }, "release_url": "https://pypi.org/project/skipnose/0.3.1/", "requires_dist": null, "requires_python": "", "summary": "Nose plugin which allows to include/exclude directories for testing by their glob pattern.", "version": "0.3.1" }, "last_serial": 3055910, "releases": { "0.1.1": [ { "comment_text": "", "digests": { "md5": "97dfed1084d7899eb46d8de06d1b653b", "sha256": "c095c0710d9870adbc3b5aaf997961608c46786e7270b5f4bafb3f712c89e268" }, "downloads": -1, "filename": "skipnose-0.1.1.tar.gz", "has_sig": false, "md5_digest": "97dfed1084d7899eb46d8de06d1b653b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9370, "upload_time": "2014-09-08T21:45:25", "url": "https://files.pythonhosted.org/packages/c1/a3/5c7131bd68060f2aa149e136b59033a3b0e00c6e674d5c83fd7aa483356b/skipnose-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "a4467d9574b35dd596af6b9d88f310ff", "sha256": "bb8b3e269566b00a6436869036fe86ac93a8760a92f8c2cd7ff3d06fcb866148" }, "downloads": -1, "filename": "skipnose-0.1.2.tar.gz", "has_sig": false, "md5_digest": "a4467d9574b35dd596af6b9d88f310ff", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 11164, "upload_time": "2015-04-30T01:23:17", "url": "https://files.pythonhosted.org/packages/b2/67/fbcaef76a5d6ebfaad2c2792f5289f289007fa75fdfcc0b4e018c3ec09e3/skipnose-0.1.2.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "1fb52a542631512eb728fe90fdd1ca87", "sha256": "b362b481ab2cb58b293021330907a4fc7deb1c30df908b63ab8d6e80e74ca973" }, "downloads": -1, "filename": "skipnose-0.2.0.tar.gz", "has_sig": false, "md5_digest": "1fb52a542631512eb728fe90fdd1ca87", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12236, "upload_time": "2016-02-24T21:08:25", "url": "https://files.pythonhosted.org/packages/df/e6/30a29f3241d079fe3e91e70e5e014db4fc0e2d865c6cf21507e8e4630bf3/skipnose-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "fc9140b35e456fd6e7aaa5f2c440a8bc", "sha256": "3a374584d2bcd4405326f473ed9da0115ad794d4f6b67c65636117c63d956f1b" }, "downloads": -1, "filename": "skipnose-0.3.0.tar.gz", "has_sig": false, "md5_digest": "fc9140b35e456fd6e7aaa5f2c440a8bc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12778, "upload_time": "2017-02-20T14:08:02", "url": "https://files.pythonhosted.org/packages/60/a7/11ecdc2e612b13949eabf4438209b400056ec3dae8541ddb95aadbfb387c/skipnose-0.3.0.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "698da5365302f83036f09d1b1d9aefec", "sha256": "a438cb152114e42b457963e4e893f878386ea4cd2540124b22f8c90b1a9d03ac" }, "downloads": -1, "filename": "skipnose-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "698da5365302f83036f09d1b1d9aefec", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11383, "upload_time": "2017-07-28T15:04:35", "url": "https://files.pythonhosted.org/packages/d4/86/b2a79fb16004467ef0435e7b8169e62f016e18d1ec0b762ad612d36809c3/skipnose-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8fa21673228ee17a63bdf9b012c844d", "sha256": "2c5e07add457e5f7d3a807958e41411c2ef398c662a0e2ce82b9b22e5c643805" }, "downloads": -1, "filename": "skipnose-0.3.1.tar.gz", "has_sig": false, "md5_digest": "b8fa21673228ee17a63bdf9b012c844d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12940, "upload_time": "2017-07-28T15:04:32", "url": "https://files.pythonhosted.org/packages/9e/9d/948873169367a411c011334b565ea9c4333afcac6bcc2981944ef73dc57c/skipnose-0.3.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "698da5365302f83036f09d1b1d9aefec", "sha256": "a438cb152114e42b457963e4e893f878386ea4cd2540124b22f8c90b1a9d03ac" }, "downloads": -1, "filename": "skipnose-0.3.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "698da5365302f83036f09d1b1d9aefec", "packagetype": "bdist_wheel", "python_version": "3.6", "requires_python": null, "size": 11383, "upload_time": "2017-07-28T15:04:35", "url": "https://files.pythonhosted.org/packages/d4/86/b2a79fb16004467ef0435e7b8169e62f016e18d1ec0b762ad612d36809c3/skipnose-0.3.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b8fa21673228ee17a63bdf9b012c844d", "sha256": "2c5e07add457e5f7d3a807958e41411c2ef398c662a0e2ce82b9b22e5c643805" }, "downloads": -1, "filename": "skipnose-0.3.1.tar.gz", "has_sig": false, "md5_digest": "b8fa21673228ee17a63bdf9b012c844d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 12940, "upload_time": "2017-07-28T15:04:32", "url": "https://files.pythonhosted.org/packages/9e/9d/948873169367a411c011334b565ea9c4333afcac6bcc2981944ef73dc57c/skipnose-0.3.1.tar.gz" } ] }