Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 UTC on 18 March 2024, to get $100 off your ticket.
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
Supporting organizations:
Project information
- Module categories: Developer Tools
- 33 sites report using this module
- Created by attiks on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-1.1
released 17 April 2012
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-1.x-dev updated 14 Mar 2012 at 00:43 UTC