Skip to main content

Open End JavaScript testing and utility kit

Project description

jskit contains infrastructure and in particular a py.test plugin to enable running tests for JavaScript code inside browsers directly using py.test as the test driver. Running inside the browsers comes with some speed cost, on the other hand it means for example the code is tested against the real-word DOM implementations.

The approach also enables to write integration tests such that the JavaScript code is tested against server-side Python code mocked as necessary. Any server-side framework that can already be exposed through WSGI (or for which a subset of WSGI can be written to accommodate the jskit own needs) can play along.

jskit has also some support to run JavaScript tests from unittest.py based test suites.

jskit also contains code to help modularizing JavaScript code which can be used to describe and track dependencies dynamically during development and that can help resolving them statically when deploying/packaging.

jskit depends on simplejson on Python 2.5. It also uses MochiKit - of which it ships a version within itself for convenience - for its own working though in does not imposes its usage on tested code.

jskit was initially developed by Open End AB and is released under the MIT license.

rest of the docs…

Europython 2009 talk with examples

The project repository lives at http://bitbucket.org/pedronis/js-infrastructure/

Discussions and feedback should go to py-dev at codespeak.net

Changelog

0.8.8

  • improved code to check for the presence of browsers which is used to skip tests, this means that listing non-present browsers in browser specs should not provoke problems

  • workaround to bug in FF3.5 triggered by the global var leak detection code, no leak detection with FF3.5 :(

0.8.7

  • flexible user-defined-name=commandline control over browser names for browser.py server with documentation

  • document the glue to standard library unittest.py

  • better error reporting when a browser cannot be started

  • use json module included in Python >=2.6, simplejson otherwise

  • move the py.test plugin into the oejskit package, expose it through a pytest11 setuptools entry point

  • fix own-tests-only issues and warnings with py.test 1.1.x

0.8.6

  • fixes for py.test 1.0 final compatibility

  • experimental glue to standard library unittest.py (no docs yet)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

oejskit-0.8.8-py2.6.egg (1.9 MB view details)

Uploaded Source

oejskit-0.8.8-py2.5.egg (1.9 MB view details)

Uploaded Source

File details

Details for the file oejskit-0.8.8-py2.6.egg.

File metadata

  • Download URL: oejskit-0.8.8-py2.6.egg
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for oejskit-0.8.8-py2.6.egg
Algorithm Hash digest
SHA256 449c5660be5efa40efdf60638b293892e1f99e8310a22bfa549fe55057afcdff
MD5 32f47af29fb03c313e6a356f8346bc3f
BLAKE2b-256 26f121eb555e9d701677c55509f00e3d030d1339896fd50fb0e4c287a41ba063

See more details on using hashes here.

File details

Details for the file oejskit-0.8.8-py2.5.egg.

File metadata

  • Download URL: oejskit-0.8.8-py2.5.egg
  • Upload date:
  • Size: 1.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for oejskit-0.8.8-py2.5.egg
Algorithm Hash digest
SHA256 faac22e56c5282c811b8abcb9dcd8642d13a1c5fe21cc7bcd61927bd23ec702a
MD5 c67a59a81523536875849399dd7b49cf
BLAKE2b-256 9b2db9a43abd08d817fc00c9b6df5f5b7781ab8c996ca23310159fcd528af99a

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page