more modifications in the name of cleaner Jenkins results

This commit is contained in:
Spencer Alger
2013-12-15 14:40:45 -07:00
parent fed7d1b0cb
commit a42cd776a5
2 changed files with 8 additions and 2 deletions

View File

@ -11,7 +11,7 @@ var argv = require('./argv');
var testDir = path.resolve(__dirname, './tests');
var doPattern = new Minimatch(argv.match);
describe('yaml -', function () {
describe('integration', function () {
this.timeout(30000);
// before running any tests...

View File

@ -48,6 +48,7 @@ function makeJUnitXml(runnerName, testDetails) {
_.each(suiteInfo.results, function (testInfo) {
var section;
var integration = false;
if (suiteInfo.name.match(/\/.*\.yaml$/)) {
section = suiteInfo.name.split('/').slice(0, -1).join('/').replace(/\./g, '/');
@ -55,10 +56,15 @@ function makeJUnitXml(runnerName, testDetails) {
section = suiteInfo.name.replace(/\./g, ',');
}
if (section.indexOf('integration ') === 0) {
section = section.replace(/^integration /, '');
integration = true;
}
var testcase = suite.ele('testcase', {
name: testInfo.name,
time: (testInfo.time || 0) / 1000,
classname: runnerName + '.' + section
classname: runnerName + (integration ? ' - integration' : '') + '.' + section
});
if (testInfo.errMsg) {