-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgruntfile.js
More file actions
36 lines (30 loc) · 1.88 KB
/
gruntfile.js
File metadata and controls
36 lines (30 loc) · 1.88 KB
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
module.exports = function (grunt) {
grunt.initConfig({
// EXAMPLES
cucumber_coverage: {
example: {
src: 'features', // folder to the tests to execute
options: {
coverage: 'logs/coverage', // set where coverage reports will be stored in relation to gruntfile
check: { // check coverage meets minimum requirements of project
lines: 100,
statements: 100,
functions: 100,
branches: 100, // all coverage levels are percentages to use during checks
force: true // when using tags checking is not performed, set force to still check coverage levels
},
format: 'pretty', // showing output of feature execution (default: pretty)
print: 'detail', // display results of coverage to console (default: summary)
report: 'html', // generate a coverage report (default: lcov)
steps: 'features/step_definitions', // location of step definitions to support feature tests
tags: '~@Ignore', // Any tags you might want to limit / exclude from running
target: 'api/controllers' // target source code to perform coverage of
}
}
}
});
require('load-grunt-tasks')(grunt, { scope: 'devDependencies' });
grunt.loadTasks('tasks');
grunt.registerTask('test', ['default']);
grunt.registerTask('test', ['cucumber_coverage']);
};