This repository was archived by the owner on Oct 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #125 from tomwayson/grunt
added grunt and configured to run intern tests via selenium
- Loading branch information
Showing
5 changed files
with
143 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/*jshint node:true */ | ||
module.exports = function (grunt) { | ||
grunt.initConfig({ | ||
intern: { | ||
runner: { | ||
options: { | ||
config: 'tests/intern', | ||
runType: 'runner' | ||
} | ||
} | ||
}, | ||
'selenium-launch': { | ||
options: { | ||
port: 4444, | ||
jarDir: 'vendor/selenium/', | ||
jar: 'selenium-server-standalone-2.42.2.jar' | ||
} | ||
} | ||
}); | ||
|
||
// Loading using a local git copy | ||
grunt.loadNpmTasks('intern'); | ||
grunt.loadNpmTasks('grunt-se-launch'); | ||
|
||
// Register a test task | ||
grunt.registerTask('test', ['selenium-launch', 'intern:runner']); | ||
|
||
// By default we just test | ||
grunt.registerTask('default', ['test']); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// run all unit test suites | ||
require([ | ||
'tests/tab', | ||
'tests/collapse', | ||
'tests/popover' | ||
], {}); |