-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
67 lines (63 loc) · 1.99 KB
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
/*
* grunt-se-runner
* https://github.com/Hyddan/grunt-se-runner
*
* Copyright (c) 2016 Daniel Hedenius
* Licensed under the WTFPL-2.0 license.
*/
'use strict';
module.exports = function (grunt) {
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js'
],
options: {
jshintrc: '.jshintrc'
}
},
seRunner: {
example: {
options: {
capabilities: [
{
browserName: 'chrome'
},
{
browserName: 'firefox'
}
],
concurrency: 1,
context: {},
dependencies: [],
driverFactory: {
create: function (capabilities) {
return new (require('selenium-webdriver')).Builder()
.usingServer(this.selenium.hub)
.withCapabilities(capabilities)
.build();
}
},
framework: 'jasmine',
logLevel: 'INFO',
tests: [
'test/*.js'
],
timeout: 60000,
selenium: {
hub: 'http://hub.browserstack.com/wd/hub'
},
jasmine: {
consoleReporter: true,
dependencies: [],
timeout: 60000
}
}
}
}
});
grunt.loadTasks('tasks');
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jshint']);
};