{ "info": { "author": "Moses Palm\u00e9r", "author_email": "moses.palmer@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "*Jasmine* integration for *unittest*\n====================================\n\nThis package allows you to run `Jasmine `_ unit\ntests fully integrated with the *Python* standard module *unittest*.\n\nThe main use case is to run *JavaScript* tests for Python server APIs.\n\n\nQuick start\n-----------\n\nTo use this module, please follow these steps:\n\n1. Add ``unittest-jasmine`` to the ``tests_require`` parameter to\n ``setuptools.setup()``.\n2. Change or add the ``test_loader`` argument to ``setuptools.setup()`` to\n ``'unittest_jasmine.SetuptoolsLoader'``.\n3. Add your *Jasmine* specs to your test package, and make sure the file names\n end with ``spec.js``.\n\nIf your project uses *npm* to manage dependencies, those will be automatically\nupdated when the tests are run using ``npm install``.\n\n\nAdvanced options\n----------------\n\nPass additional options to *unittest-jasmine* by modifying the ``test_suite``\nparameter to ``setuptools.setup()``; append the character ``'|'`` and then\nthe options separated by ``';'``::\n\n setuptools.setup(\n . . .\n test_suite='tests|option1=value1;option2={\"flag\":true}',\n . . .\n )\n\nThe value part of an option may be either *JSON* or a simple string. Anything\nthat is not parsable as *JSON* is treated as a simple string. A simple string\nis treated as a *JSON* string.\n\nThe following options are recognised by *unittest-jasmine*:\n\nlifecycle\n A module receiving notifications about the lifecycle of suites and tests.\n See `I need to run Python code before each test or suite`_ for more\n information.\n\nspec_regex\n A regular expression used to find the spec files in the test directory.\n\ntest_directory\n The directory that contains the spec files. This must be an absolute path.\n\nAny option not in this list will be passed on to the *Jasmine* ``loadConfig``\nmethod.\n\n\nCommon tasks\n------------\n\n\nMy *Jasmine* specs are not located in the same directory as my *Python* tests\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nOverride the default path to the spec files by setting the option\n``test_directory``. This must be the absolute path to the directory containing\nthe spec files.\n\n\nMy *Jasmine* spec files do not end with ``spec.js``\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nOverride the regular expression used to filter spec files from the test\ndirectory by setting the option ``spec_regex``. This is used as a regular\nexpression to filter the files to include.\n\nAn example value is::\n\n setuptools.setup(\n . . .\n test_suite='tests|spec_regex=.*?-test\\\\.js',\n . . .\n )\n\n\nI need to run *Python* code before each test or suite\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSet the option ``lifecycle`` to specify a module with functions handling the\nsetup and teardown of tests and suites.\n\nThe functions ``suite_setup``, ``suite_teardown``, ``test_setup`` and\n``test_teardown``, if defined, will be called with the suite or test as\nparameter. The functions will be called as instance methods of the respective\nsuites and tests.\n\nYou may copy templates for these functions from\n``.../unittest_jasmine/_setuptools.py``.\n\nAn example value is::\n\n setuptools.setup(\n . . .\n test_suite='tests|lifecycle=test._jasmine_lifecycle',\n . . .\n )\n\n\nI need to load *Jasmine* helper files\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nSet the option ``helper`` to a *JSON* encoded list of strings. The strings are\ninterpreted by *Jasmine* as paths to helper files, relative to the directory\ncontaining the spec files; they must not be absolute paths.\n\n\nI have specs written in *CoffeeScript*\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n\nTo enable running tests written in *CoffeeScript*, first modify the option\n``spec_regex`` to ensure that it also includes ``.coffee`` files, and then make\nsure that one of your *Jasmine* helper files contains the expression\n``require(\"coffee-script/register\")``. An example value is::\n\n setuptools.setup(\n . . .\n test_suite='tests|spec_regex=.*?spec\\\\.(js|coffee);helpers=[\"cs.js\"]',\n . . .\n )\n\n\nRelease notes\n=============\n\nv1.0.2 - pkg_resources fixes\n----------------------------\n* Make sure to actually include the *JavaScript* runner in the package.\n* Use ``__name__`` instead of ``__package__`` when loading runner using\n ``pkg_resources`` to work on *Python 3*.\n\n\nv1.0.1 - Python 3 fixes\n-----------------------\n* Corrected dynamic method addition to work with *Python 3*.\n* Allow using release maker script on *Python 3*.\n* Build a universal wheel when making a release.\n\n\nv1.0 - Initial Release\n----------------------\n* Initial release", "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/moses-palmer/unittest-jasmine", "keywords": null, "license": "GPLv3", "maintainer": null, "maintainer_email": null, "name": "unittest-jasmine", "package_url": "https://pypi.org/project/unittest-jasmine/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/unittest-jasmine/", "project_urls": { "Download": "UNKNOWN", "Homepage": "https://github.com/moses-palmer/unittest-jasmine" }, "release_url": "https://pypi.org/project/unittest-jasmine/1.0.2/", "requires_dist": null, "requires_python": null, "summary": "A unittest test loader for Jasmine tests", "version": "1.0.2" }, "last_serial": 2141436, "releases": { "1.0": [ { "comment_text": "", "digests": { "md5": "3c2e71415dd8c73da2bff040920fbbde", "sha256": "10d652f2e58d60273629e1e3312e20098ac7e2956fd590d36e86edf5d1200ba0" }, "downloads": -1, "filename": "unittest_jasmine-1.0-py3.5.egg", "has_sig": false, "md5_digest": "3c2e71415dd8c73da2bff040920fbbde", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 33762, "upload_time": "2016-05-30T19:38:22", "url": "https://files.pythonhosted.org/packages/7e/2f/d4f61ec33720afc9ab3a4c90b950ae07f734e602757bfb189272592b871d/unittest_jasmine-1.0-py3.5.egg" }, { "comment_text": "", "digests": { "md5": "52e92e9876e376e9a70a2fa3e027167b", "sha256": "9005b4e87a05c42d81fc3c90ed78ec2841be9c117123a9065f8309c389bbf932" }, "downloads": -1, "filename": "unittest_jasmine-1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "52e92e9876e376e9a70a2fa3e027167b", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 19784, "upload_time": "2016-05-30T19:38:30", "url": "https://files.pythonhosted.org/packages/f0/f6/f88e7ee114ec5139c135e8d556b5fb938b2c178b8350a6668dd2c47b953d/unittest_jasmine-1.0-py3-none-any.whl" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "e6e9c8d7611ead5cfdd8d931b4ceaad8", "sha256": "7ecbdb81469e3fd494073e7b53c1505e2d8550398d3cc972b206eeab82b7febd" }, "downloads": -1, "filename": "unittest_jasmine-1.0.1-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "e6e9c8d7611ead5cfdd8d931b4ceaad8", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 20224, "upload_time": "2016-05-30T20:54:42", "url": "https://files.pythonhosted.org/packages/33/42/c9158a770acb3d1febd435e65df15e49c9a76fbbc4c9fc1c97860ef2e337/unittest_jasmine-1.0.1-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e36991fff6ce78d04664e8f41dbc5835", "sha256": "4da9f04df9d0dbdcf4c4db5e599f59b238bf0da40655ae6221273377c85e809a" }, "downloads": -1, "filename": "unittest_jasmine-1.0.1-py3.5.egg", "has_sig": false, "md5_digest": "e36991fff6ce78d04664e8f41dbc5835", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 17039, "upload_time": "2016-05-30T20:54:48", "url": "https://files.pythonhosted.org/packages/d6/f6/0535de68fc99e60e76d6e903f99d6b9c4d952304e12268627d380dfbab73/unittest_jasmine-1.0.1-py3.5.egg" } ], "1.0.2": [ { "comment_text": "", "digests": { "md5": "d37dabfda7edc75b3fb1d05cb55e6932", "sha256": "7788758bc959bdadebca4622d41abf1eecfcac67c5de84f8d1bd395c491addce" }, "downloads": -1, "filename": "unittest_jasmine-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d37dabfda7edc75b3fb1d05cb55e6932", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 21184, "upload_time": "2016-05-30T21:17:55", "url": "https://files.pythonhosted.org/packages/aa/65/ec5b2f40eae486b8d60aad764ba525b513aab3a412aad84fa5b9fbd11d97/unittest_jasmine-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6aae25f0e1afcd832ffda26ad7ace107", "sha256": "8776b35f9a191cca2d5677475a49e458965efafea0ae4a881c77963a5f83f3dc" }, "downloads": -1, "filename": "unittest_jasmine-1.0.2-py3.5.egg", "has_sig": false, "md5_digest": "6aae25f0e1afcd832ffda26ad7ace107", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 34840, "upload_time": "2016-05-30T21:17:33", "url": "https://files.pythonhosted.org/packages/e3/6f/0dacab02199419340afbe1264afd4dd57ac84a70045fe8d42f490ce95482/unittest_jasmine-1.0.2-py3.5.egg" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "d37dabfda7edc75b3fb1d05cb55e6932", "sha256": "7788758bc959bdadebca4622d41abf1eecfcac67c5de84f8d1bd395c491addce" }, "downloads": -1, "filename": "unittest_jasmine-1.0.2-py2.py3-none-any.whl", "has_sig": false, "md5_digest": "d37dabfda7edc75b3fb1d05cb55e6932", "packagetype": "bdist_wheel", "python_version": "3.5", "requires_python": null, "size": 21184, "upload_time": "2016-05-30T21:17:55", "url": "https://files.pythonhosted.org/packages/aa/65/ec5b2f40eae486b8d60aad764ba525b513aab3a412aad84fa5b9fbd11d97/unittest_jasmine-1.0.2-py2.py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6aae25f0e1afcd832ffda26ad7ace107", "sha256": "8776b35f9a191cca2d5677475a49e458965efafea0ae4a881c77963a5f83f3dc" }, "downloads": -1, "filename": "unittest_jasmine-1.0.2-py3.5.egg", "has_sig": false, "md5_digest": "6aae25f0e1afcd832ffda26ad7ace107", "packagetype": "bdist_egg", "python_version": "3.5", "requires_python": null, "size": 34840, "upload_time": "2016-05-30T21:17:33", "url": "https://files.pythonhosted.org/packages/e3/6f/0dacab02199419340afbe1264afd4dd57ac84a70045fe8d42f490ce95482/unittest_jasmine-1.0.2-py3.5.egg" } ] }