Skip to content

Commit a3c6626

Browse files
committed
Improve skipping logging.
1 parent cd9fd6f commit a3c6626

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

tests/test-common.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,8 @@ function addTest(manifest, test, tests) {
463463
if(testInfo.skip && testInfo.skip.idRegex) {
464464
testInfo.skip.idRegex.forEach(function(re) {
465465
if(re.test(test['@id'])) {
466-
//console.log('Skipping test "' + test.name + '" of description: ' + description);
466+
//console.log('Skipping test due to id:',
467+
// {id: test['@id']});
467468
self.skip();
468469
}
469470
});
@@ -472,7 +473,8 @@ function addTest(manifest, test, tests) {
472473
if(testInfo.skip && testInfo.skip.descriptionRegex) {
473474
testInfo.skip.descriptionRegex.forEach(function(re) {
474475
if(re.test(description)) {
475-
//console.log('Skipping test "' + test.name + '" of description: ' + description);
476+
//console.log('Skipping test due to description:',
477+
// {id: test['@id'], name: test.name, description});
476478
self.skip();
477479
}
478480
});
@@ -488,7 +490,8 @@ function addTest(manifest, test, tests) {
488490
skipModes = testInfo.skip.processingMode;
489491
}
490492
if(skipModes.indexOf(pm) !== -1) {
491-
//console.log('Skipping test "' + test.name + '" of processing mode: ' + pm);
493+
//console.log('Skipping test due to processingMode:',
494+
// {id: test['@id'], name: test.name, processingMode: pm});
492495
self.skip();
493496
}
494497
});
@@ -502,7 +505,8 @@ function addTest(manifest, test, tests) {
502505
skipVersions = testInfo.skip.specVersion;
503506
}
504507
if(skipVersions.indexOf(sv) !== -1) {
505-
//console.log('Skipping test "' + test.name + '" for spec version: ' + sv);
508+
//console.log('Skipping test due to specVersion:',
509+
// {id: test['@id'], name: test.name, specVersion: sv});
506510
self.skip();
507511
}
508512
});

0 commit comments

Comments
 (0)