Created
December 7, 2013 16:13
-
-
Save sideroad/7844522 to your computer and use it in GitHub Desktop.
Selenium IDEで作ったテストを実行できるgrunt-seleniumについて紹介するよ ref: http://qiita.com/sideroad/items/4e9fa341be4e12245986
This file contains hidden or 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
npm install --save-dev grunt-selenium |
This file contains hidden or 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
module.exports = function(grunt) { | |
// Project configuration. | |
grunt.initConfig({ | |
// Configuration to be run (and then tested). | |
selenium: { | |
options: { | |
startURL : 'http://sideroad.secret.jp/', | |
browsers: ['firefox', 'chrome', 'phantomjs'], | |
log: 'test/wd.log' | |
}, | |
main: { | |
files: { | |
'test/main.tap': ['test/*.suite'] | |
} | |
} | |
}, | |
clean: ['test/main.tap'] | |
}); | |
grunt.loadNpmTasks('grunt-contrib-clean'); | |
grunt.loadNpmTasks('grunt-selenium'); | |
// By default, lint and run all tests. | |
grunt.registerTask('default', ['clean', 'selenium']); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment