Skip to content

Commit 61a8510

Browse files
committed
Automate unit tests across multiple jQuery versions
1 parent b9ae4b3 commit 61a8510

File tree

6 files changed

+16103
-474
lines changed

6 files changed

+16103
-474
lines changed

grunt.js

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,14 @@ module.exports = function(grunt) {
1818
lint: {
1919
files: ['grunt.js', 'test/**/*.js', 'src/**/*.js']
2020
},
21+
server: {
22+
port: 9095
23+
},
2124
qunit: {
22-
files: ['test/**/*.html']
23-
},
25+
urls: ['1.4.3', '1.9.0', '2.0.0b1'].map(function(version) {
26+
return 'http://localhost:<%= server.port %>/test/jquery.stellar.html?jquery=' + version;
27+
})
28+
},
2429
concat: {
2530
dist: {
2631
src: ['<banner:meta.banner>', '<file_strip_banner:src/<%= pkg.name %>.js>'],
@@ -35,10 +40,11 @@ module.exports = function(grunt) {
3540
},
3641
watch: {
3742
files: '<config:lint.files>',
38-
tasks: 'lint qunit'
43+
tasks: 'server lint qunit'
3944
},
4045
jshint: {
4146
options: {
47+
evil: true,
4248
curly: false,
4349
eqeqeq: true,
4450
immed: true,
@@ -58,6 +64,8 @@ module.exports = function(grunt) {
5864
});
5965

6066
// Default task.
61-
grunt.registerTask('default', 'lint qunit concat min');
67+
grunt.registerTask('default', 'server lint qunit concat min');
68+
69+
grunt.registerTask('test', 'server lint qunit');
6270

6371
};

0 commit comments

Comments
 (0)