[CI] Produce junit test reports (#15281)

* [mocha] use custom reporter for legible results in jenkins

* [jest] use custom result processor for legible results in jenkins

* [karma] enable junit output on CI

* [mocha/junitReporter] accept rootDirectory as configuration

* [jest/reporter] use reporters option added in jest 20

* [toolingLog] remove black/white specific colors

* [dev/mocha/junit] no reason for junit to be a "reporter"

* typos

* [dev/mocha/junit] use else if

* [karma/junit] use string#replace for explicitness

* [junit] use test file path as "classname"

* [ftr/mocha] no longer a "console" specific reporter
This commit is contained in:
Spencer 2017-12-05 17:29:48 -07:00 committed by GitHub
parent fa28e7554c
commit f71ec29bd6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
32 changed files with 332 additions and 33 deletions

8
src/dev/jest/cli.js Normal file
View file

@ -0,0 +1,8 @@
import jest from 'jest';
import { resolve } from 'path';
const argv = process.argv.slice(2);
argv.push('--config', resolve(__dirname, './config.json'));
jest.run(argv);