{ "info": { "author": "Rok Garbas", "author_email": "rok@garbas.si", "bugtrack_url": null, "classifiers": [], "description": "Introduction\n============\n\nThis package integrates `JSHint`_ with Python's `unittest`_ module. This\npackage was inspired by `gocept.jslint`_.\n\n`JSHint`_ is a community-driven tool to detect errors and potential problems in\nJavaScript code and to enforce your team's coding conventions.\n\nIt provides a special JSHintTestCase class that collects JavaScript files (in\na configurable manner) and dynamically generates a test method for each file\nthat calls jslint on that file.\n\n.. contents::\n\n\nUsage\n=====\n\nTo use it, create a test class like this::\n\n class MyPackageJSLintTest(unittest_jshint.JSHintTestCase):\n\n include = (\n 'my.package.browser:js',\n 'my.package.browser:js/lib',\n )\n\n options = ( 'curly', 'eqeqeq', )\n\n\n``include`` is a list of \"resource paths\" of the form ``packagename:path``\n(passed to pkg_resources).\n\n``exclude`` can be a list of filenames (without path) that will not be\ncollected.\n\n``options`` is a list of arguments that are passed to JSHint (see its\n`documentation`_ for details). The default value is::\n\n options = ()\n\n\nAll files ending in ``.js`` contained in each of these paths will be collected,\nand the test class will grow a method named ``test_.js``.\n\nYou can ignore JSHint error by setting ``ignore`` on the test class (a list of\nsubstrings that are matched against each JHLint output line)::\n\n ignore = (\n \"Use a named parameter\",\n )\n\n\nRequirements\n============\n\n``unittest_jshint`` was tested with:\n\n- Python 2.6 (unittest2 required)\n- Python 2.7\n\nCurrently I only test with `Python`_ versions that are used by `Plone`_ so it\njust might work for other `Python`_ versions.\n\n``unittest_jshint`` requires ``jshint`` to be in the ``PATH`` or providing\ncustomized environmental variable ``UNITTEST_JSHINT_COMMAND``.\n\n\nContributors\n============\n\n- `Rok Garbas`_, garbas\n\n\n\n.. _`JSHint`: http://www.jshint.com\n.. _`gocept.jslint`: http://pypi.python.org/pypi/gocept.jslint\n.. _`documentation`: http://www.jshint.com/options/\n.. _`Python`: http://www.python.org\n.. _`Plone`: http://www.plone.org\n.. _`Rok Garbas`: 'http://garbas.si", "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/garbas/unittest_jshint", "keywords": null, "license": "BSD", "maintainer": null, "maintainer_email": null, "name": "unittest_jshint", "package_url": "https://pypi.org/project/unittest_jshint/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/unittest_jshint/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/garbas/unittest_jshint" }, "release_url": "https://pypi.org/project/unittest_jshint/1.0/", "requires_dist": null, "requires_python": null, "summary": "python unittest integration for jshint", "version": "1.0" }, "last_serial": 745930, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "cd4c53a54db99086d4bd656dab403056", "sha256": "0860a858cf44f66e6c3fdfc30486b0743d8f1a970016296265a5280cd5a2cb47" }, "downloads": -1, "filename": "unittest_jshint-1.0.tar.gz", "has_sig": false, "md5_digest": "cd4c53a54db99086d4bd656dab403056", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3726, "upload_time": "2012-05-13T05:19:14", "url": "https://files.pythonhosted.org/packages/ec/89/a16ac4f3529d7c27cada385f36a4bdc3d02e164972ad2862b98d9c149021/unittest_jshint-1.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cd4c53a54db99086d4bd656dab403056", "sha256": "0860a858cf44f66e6c3fdfc30486b0743d8f1a970016296265a5280cd5a2cb47" }, "downloads": -1, "filename": "unittest_jshint-1.0.tar.gz", "has_sig": false, "md5_digest": "cd4c53a54db99086d4bd656dab403056", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3726, "upload_time": "2012-05-13T05:19:14", "url": "https://files.pythonhosted.org/packages/ec/89/a16ac4f3529d7c27cada385f36a4bdc3d02e164972ad2862b98d9c149021/unittest_jshint-1.0.tar.gz" } ] }