Skip to content

Commit e7c08d0

Browse files
committed
Grunt: Extend list of tests to run with TestSwarm
1 parent 57d18cd commit e7c08d0

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

grunt.js

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -336,8 +336,38 @@ grunt.initConfig({
336336
});
337337

338338
grunt.registerTask( "testswarm", function( commit, authToken ) {
339-
var testswarm = require( "testswarm" );
340-
var testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/";
339+
var test,
340+
testswarm = require( "testswarm" ),
341+
testBase = "http://swarm.jquery.org/git/jquery-ui/" + commit + "/",
342+
testUrls = [],
343+
tests = {
344+
"Accordion": "accordion/accordion.html",
345+
"Accordion_deprecated": "accordion/accordion_deprecated.html",
346+
"Autocomplete": "autocomplete/autocomplete.html",
347+
"Button": "button/button.html",
348+
"Core": "core/core.html",
349+
//"datepicker/datepicker.html",
350+
//"dialog/dialog.html",
351+
//"draggable/draggable.html",
352+
//"droppable/droppable.html",
353+
"Effects": "effects/effects.html",
354+
"Menu": "menu/menu.html",
355+
"Position": "position/position.html",
356+
"Position_deprecated": "position/position_deprecated.html",
357+
"Progressbar": "progressbar/progressbar.html",
358+
//"resizable/resizable.html",
359+
//"selectable/selectable.html",
360+
//"slider/slider.html",
361+
//"sortable/sortable.html",
362+
"Spinner": "spinner/spinner.html",
363+
"Tabs": "tabs/tabs.html",
364+
"Tabs_deprecated": "tabs/tabs_deprecated.html",
365+
"Tooltip": "tooltip/tooltip.html",
366+
"Widget": "widget/widget.html"
367+
};
368+
for (test in tests) {
369+
testUrls.push( testBase + tests[ test ] );
370+
}
341371
testswarm({
342372
url: "http://swarm.jquery.org/api.php?",
343373
pollInterval: 2000,
@@ -347,8 +377,8 @@ grunt.registerTask( "testswarm", function( commit, authToken ) {
347377
authToken: authToken,
348378
jobName: 'jQuery UI commit #<a href="https://github.com/jquery/jquery-ui/commit/' + commit + '">' + commit + '</a>',
349379
runMax: 1,
350-
"runNames[]": ["Accordion", "Autocomplete"],
351-
"runUrls[]": [ testBase + "tests/unit/accordion/accordion.html", testBase + "tests/unit/autocomplete/autocomplete.html" ],
380+
"runNames[]": Object.keys(tests),
381+
"runUrls[]": testUrls,
352382
browserSets: "popular"
353383
});
354384
});

0 commit comments

Comments
 (0)