forked from microsoft/applicationinsights-channel-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gruntfile.js
43 lines (41 loc) · 1.26 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
module.exports = function (grunt) {
grunt.initConfig({
ts: {
options: {
comments: true
},
default: {
tsconfig: './tsconfig.json'
},
test: {
tsconfig: './Tests/tsconfig.json',
src: [
'./Tests/Selenium/*.ts',
'./Tests/*.ts',
],
out: 'Tests/Selenium/aichannel.tests.js'
}
},
qunit: {
channel: {
options: {
urls: [
'./Tests/Selenium/Tests.html'
],
timeout: 300 * 1000, // 5 min
console: false,
summaryOnly: true,
'--web-security': 'false'
}
}
}
});
grunt.event.on('qunit.testStart', function (name) {
grunt.log.ok('Running test: ' + name);
});
grunt.loadNpmTasks("grunt-ts");
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-qunit');
grunt.registerTask("default", ["ts:default"]);
grunt.registerTask("test", ["ts:default", "ts:test", "qunit:channel"]);
};