Skip to content

Instantly share code, notes, and snippets.

@sideroad
Created December 7, 2013 16:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sideroad/7844522 to your computer and use it in GitHub Desktop.
Save sideroad/7844522 to your computer and use it in GitHub Desktop.
Selenium IDEで作ったテストを実行できるgrunt-seleniumについて紹介するよ ref: http://qiita.com/sideroad/items/4e9fa341be4e12245986
npm install --save-dev grunt-selenium
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