mirror of https://github.com/grpc/grpc-node.git
Add Jenkins XML reporting to tests
This commit is contained in:
parent
818fb3423f
commit
18b756f342
|
@ -15,6 +15,7 @@
|
|||
"express": "^4.15.4",
|
||||
"google-auth-library": "^0.11.0",
|
||||
"lodash": "^4.17.4",
|
||||
"mocha-jenkins-reporter": "^0.3.9",
|
||||
"poisson-process": "^0.2.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
@ -20,5 +20,5 @@ gulp.task('health-check.link.add', 'Link local copy of grpc', ['health-check.ins
|
|||
|
||||
gulp.task('health-check.test', 'Run health check tests',
|
||||
() => {
|
||||
return gulp.src(`${testDir}/*.js`).pipe(mocha());
|
||||
return gulp.src(`${testDir}/*.js`).pipe(mocha({reporter: 'mocha-jenkins-reporter'}));
|
||||
});
|
||||
|
|
|
@ -120,7 +120,7 @@ gulp.task('js.core.test.compile', 'After dep tasks, transpiles test/.', ['js.cor
|
|||
gulp.task('js.core.test', 'After dep tasks, runs all tests.',
|
||||
['js.core.test.compile'], () => {
|
||||
return gulp.src(`${outDir}/test/**/*.js`)
|
||||
.pipe(mocha());
|
||||
.pipe(mocha({reporter: 'mocha-jenkins-reporter'}));
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -36,5 +36,5 @@ gulp.task('native.core.build', 'Build native package', () => {
|
|||
});
|
||||
|
||||
gulp.task('native.core.test', 'Run all tests', ['native.core.build'], () => {
|
||||
return gulp.src(`${testDir}/*.js`).pipe(mocha());
|
||||
return gulp.src(`${testDir}/*.js`).pipe(mocha({reporter: 'mocha-jenkins-reporter'}));
|
||||
});
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
"istanbul": "^0.4.4",
|
||||
"jsdoc": "^3.3.2",
|
||||
"minimist": "^1.1.0",
|
||||
"mocha-jenkins-reporter": "^0.2.3",
|
||||
"poisson-process": "^0.2.1"
|
||||
},
|
||||
"engines": {
|
||||
|
|
|
@ -41,7 +41,8 @@ do
|
|||
./node_modules/.bin/gulp setup
|
||||
|
||||
# Rebuild libraries and run tests.
|
||||
./node_modules/.bin/gulp native.test || FAILED="true"
|
||||
JUNIT_REPORT_PATH="node$version/" JUNIT_REPORT_STACK=1 ./node_modules/.bin/gulp native.test || FAILED="true"
|
||||
rename 's/([^\/]+).xml/$1_sponge_log.xml/' "node$version"/*
|
||||
done
|
||||
|
||||
if [ "$FAILED" != "" ]
|
||||
|
|
|
@ -15,5 +15,5 @@ gulp.task('internal.test.link.add', 'Link local copies of grpc packages', () =>
|
|||
});
|
||||
|
||||
gulp.task('internal.test.test', 'Run API-level tests', () => {
|
||||
return gulp.src(`${apiTestDir}/*.js`).pipe(mocha());
|
||||
return gulp.src(`${apiTestDir}/*.js`).pipe(mocha({reporter: 'mocha-jenkins-reporter'}));
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue