diff --git a/bin/approbation.js b/bin/approbation.js index 7ff6f4e..ab4ea27 100755 --- a/bin/approbation.js +++ b/bin/approbation.js @@ -60,7 +60,7 @@ if (command === 'check-filenames') { process.exit(1); } - res = checkFeatures(specs, argv.features, ignoreGlob, isVerbose) + res = checkFeatures(paths, argv.features, ignoreGlob, isVerbose) process.exit(res.exitCode) } else if (command === 'check-references') { const testsGlob = argv.tests diff --git a/package-lock.json b/package-lock.json index ba9bc76..cd8115d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@vegaprotocol/approbation", - "version": "4.9.1", + "version": "4.9.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@vegaprotocol/approbation", - "version": "4.9.1", + "version": "4.9.2", "license": "Unlicense", "dependencies": { "console-table-printer": "^2.12.1", diff --git a/package.json b/package.json index e1d9ba0..ddf6ccb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@vegaprotocol/approbation", - "version": "4.9.1", + "version": "4.9.2", "description": "Match Acceptance Criteria Codes with the tests that test them", "engine": ">= 18", "bin": "./bin/approbation.js", diff --git a/src/check-features.js b/src/check-features.js index e88a82e..1b3edb3 100755 --- a/src/check-features.js +++ b/src/check-features.js @@ -73,6 +73,10 @@ function checkFeatures(paths, featuresPath, ignoreGlob, isVerbose = false) { exitCode = 1 } + if (exitCode === 0) { + console.log(pc.green(pc.bold('All features are good'))) + } + return { exitCode, res