TestSwarm tests

A module to do automated QUnit testing

Features

  • Strict javascript client side testing.
  • Can be extended to test multiple themes at the same time.
  • Works for authenticated and anonymous users.
  • Detailed recording of all test runs.
  • All submit and validate handlers are disabled.
  • Permissions are checked before running a test.
  • Testing of submit handlers running in iframes
  • Allow certain roles to submit forms

How

  • Implement hook_testswarm_tests to define all your tests.
  • Create a javascript file containing QUnit code.
  • Navigate to /testswarm-browser-tests.

Permissions

In order to run a test you need the permission 'run testswarm tests', it should be save to allow anonymous users to use this as well. For each tests you can specify additional permissions and all validate and submit handlers are removed for all forms (except for UID1).

Included tests

  • Basic test
  • JQuery once
  • Re order blocks
  • Create page content
  • States.js
  • Autocomplete
  • ...

Roadmap

  • add full theme support to tests running inside an iframe
  • better reporting

Demo

Credits

Based on idea of QUnit module with some ideas of JQuery TestSwarm

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.1 tar.gz (47.26 KB) | zip (59.01 KB) 2012-Apr-17 Notes

Development releases

Version Downloads Date Links
8.x-1.x-dev tar.gz (42.04 KB) | zip (48.67 KB) 2013-Apr-15 Notes
7.x-1.x-dev tar.gz (43.76 KB) | zip (49.26 KB) 2013-May-19 Notes

Project Information


Maintainers for Test Swarm

  • attiks - 120 commits
    last: 5 weeks ago, first: 1 year ago
  • jessebeach - 6 commits
    last: 5 weeks ago, first: 14 weeks ago
  • Jelle_S - 78 commits
    last: 24 weeks ago, first: 48 weeks ago
  • nod_ - 1 commit
    last: 36 weeks ago, first: 36 weeks ago

Issues for Test Swarm

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports
Statistics (2 years)
New issues
Open bugs
Participants