benderjs-jquery
jQuery plugin for Bender.js.
Creates tests for all versions of jQuery specified in bender.js
configuration file.
Appropriate version of jQuery will be downloaded from jQuery's CDN, cached and included in the test context.
Installation
npm install benderjs-jquery
Usage
Add benderjs-jquery
to the plugins
array in your bender.js
configuration file:
var config = {
applications: {...}
browsers: [...],
plugins: ['benderjs-jquery'],
tests: {...}
};
module.exports = config;
Specify jQuery versions for a test group:
var config = {
applications: {...}
browsers: [...],
plugins: ['benderjs-jquery'],
tests: {
Foo: {
basePath: '',
jQuery: ['1.7.2', '1.10.2', '2.0.1'],
paths: [...]
}
}
};
module.exports = config;
Add jquery
to the test's tags:
bender.test({...});
As a result 3 tests will be created:
- tests/tests?jquery=1.7.2
- tests/tests?jquery=1.10.2
- tests/tests?jquery=2.0.1
License
MIT, for license details see: LICENSE.md.