Skip to content

Commit

Permalink
Merge pull request #176 from AlecSchaefer/ignore_PausableTests
Browse files Browse the repository at this point in the history
modifies verification tool to ignore PausableTests file
  • Loading branch information
o-a-hudson authored Aug 3, 2018
2 parents d25328d + dba9d85 commit 30b5a8d
Showing 1 changed file with 25 additions and 4 deletions.
29 changes: 25 additions & 4 deletions verification/verification_reporter.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,28 @@ function verification_reporter (runner) {
// we skip verification. (See README.verification)
var upgraded = suite.title.match(/Upgraded/gi);
var legacy = suite.title.match(/Legacy/gi);
if (upgraded) {
if (upgraded && legacy) {
console.log(indent +
'This test file is marked "Upgraded". Skipping verification.');
'This test file is marked "Upgraded" and "Legacy". Skipping verification.');
} else {
if (upgraded) {
console.log(indent +
'This test file is marked "Upgraded". Skipping verification.');
}
if (legacy) {
console.log(indent +
'This test file is marked "Legacy". Skipping verification.');
}
}
if (legacy) {

// We also skip verification on the 'PausableTests' file.
// Remove this block and the one indicated below to re-enable.
var pausable_tests = suite.title.match(/PausableTests/gi);
if (pausable_tests) {
console.log(indent +
'This test file is marked "Legacy". Skipping verification.');
'Verification tool configured to skip PausableTests file.');
}

});

// Runs at the end of every test.
Expand All @@ -62,6 +76,13 @@ function verification_reporter (runner) {
return;
}

// We also skip verification on the 'PausableTests' file.
// Remove this block and the one indicated above to re-enable.
var pausable_tests = test.parent.title.match(/PausableTests/gi);
if (pausable_tests) {
return;
}

// Parse test title.
var file = test.parent.title.match(/[a-z]+Tests/gi);
if (file) {
Expand Down

0 comments on commit 30b5a8d

Please sign in to comment.