{ "info": { "author": "edX", "author_email": "UNKNOWN", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Environment :: Console", "Intended Audience :: Developers", "License :: OSI Approved :: GNU Affero General Public License v3", "Operating System :: OS Independent", "Programming Language :: Python", "Topic :: Software Development :: Quality Assurance", "Topic :: Software Development :: Testing" ], "description": "js-test-tool\n============\n\nRun JavaScript test suites and collect coverage information.\n\n\nInstallation\n------------\n\n.. code:: bash\n\n cd js-test-tool\n python setup.py install\n\n\nGetting Started\n---------------\n\n1. Create a file describing the test suite.\n\n.. code:: bash\n\n js-test-tool init js_test.yml\n\nThis will create a YAML file (``js_test.yml``) that looks like:\n\n.. code:: yaml\n\n ---\n # Name of the test suite, used to construct\n # the URL from which pages are served.\n #\n # For example, if the suite name is \"test_suite\",\n # then:\n #\n # * /suite/test_suite\n # serves the test suite runner page\n # * /suite/test_suite/include/*\n # serves dependencies (src, spec, lib, and fixtures)\n #\n # Test suite names must be URL-encodable and unique\n # among suite descriptions passed to js-test-tool\n test_suite_name: test_suite\n\n # Currently, the only supported test runner is Jasmine\n # See http://pivotal.github.io/jasmine/\n # for the Jasmine documentation.\n test_runner: jasmine\n\n # Path prepended to source files in the coverage report (optional)\n # For example, if the source path\n # is \"src/source.js\" (relative to this YAML file)\n # and the prepend path is \"base/dir\"\n # then the coverage report will show\n # \"base/dir/src/source.js\"\n prepend_path: base/path\n\n # Paths to library JavaScript files (optional)\n lib_paths:\n - path/to/lib\n\n # Paths to source JavaScript files\n src_paths:\n - path/to/src\n\n # Paths to spec (test) JavaScript files\n spec_paths:\n - path/to/spec\n\n # Paths to fixture files (optional)\n # The fixture path will be set automatically when using jasmine-jquery.\n # (https://github.com/velesin/jasmine-jquery)\n #\n # You can then access fixtures using paths relative to\n # the test suite description:\n #\n # loadFixtures('path/to/fixture/fixture.html');\n #\n fixture_paths:\n - path/to/fixture\n\n # Regular expressions used to exclude *.js files from\n # appearing in the test runner page.\n # Some test runners (like the jasmine runner) include files by default,\n # which means that they are loaded using a