wdio-workflo-allure-reporter
Version:
This is a customized version of wdio-workflo-allure-reporter for use with workflo framework.
87 lines (85 loc) • 2.21 kB
JavaScript
module.exports = function (grunt) {
grunt.initConfig({
pkgFile: 'package.json',
clean: {
default: ['build'],
test: ['.allure-results']
},
babel: {
options: {
sourceMap: false,
optional: ['runtime']
},
dist: {
files: [{
expand: true,
cwd: './lib',
src: ['**/*.js'],
dest: 'build',
ext: '.js'
}]
}
},
eslint: {
options: {
parser: 'babel-eslint'
},
target: ['lib/**/*.js', 'test/**/*.js']
},
contributors: {
options: {
commitMessage: 'update contributors'
}
},
bump: {
options: {
commitMessage: 'v%VERSION%',
pushTo: 'upstream'
}
},
watch: {
dist: {
files: './lib/**/*.js',
tasks: ['babel:dist']
}
},
mochaTest: {
test: {
options: {
require: ['babel/register'],
reporter: 'spec',
quiet: false,
timeout: 8000
},
src: 'test/specs/*.js'
}
},
connect: {
testpage: {
options: {
port: 8080,
base: './test/fixtures'
}
}
}
})
require('load-grunt-tasks')(grunt)
grunt.registerTask('default', ['eslint', 'build'])
grunt.registerTask('build', 'Build wdio-allure-reporter', function () {
grunt.task.run([
'clean',
'babel'
])
})
grunt.registerTask('release', 'Bump and tag version', function (type) {
grunt.task.run([
'build',
'contributors',
'bump:' + (type || 'patch')
])
})
grunt.registerTask('test', 'Integration Tests', [
'connect',
'mochaTest'
])
}