This commit is contained in:
Fred K. Schott
2019-11-26 16:50:12 -08:00
parent 9e712d6089
commit e1d4ebc5f6
2 changed files with 3 additions and 2 deletions

View File

@@ -3,4 +3,4 @@
--slow 500 --slow 500
--require ts-node/register --require ts-node/register
--watch-extensions ts --watch-extensions ts
./test/*.{ts,js} ./test/api/index.ts ./test/*.{ts,js}

View File

@@ -57,10 +57,11 @@ describe('RippleAPI [Test Runner]', function() {
}) })
} }
// Report any missing tests.
const allTestedMethods = new Set(allTestSuites.map(s => s.name)); const allTestedMethods = new Set(allTestSuites.map(s => s.name));
for (const methodName of allPublicMethods) { for (const methodName of allPublicMethods) {
if (!allTestedMethods.has(methodName)) { if (!allTestedMethods.has(methodName)) {
// TODO: Once migration is complete, remove this filter so that missing tests are reported. // TODO: Once migration is complete, remove `.skip()` so that missing tests are reported as failures.
it.skip(`${methodName} - no test suite found`, () => { it.skip(`${methodName} - no test suite found`, () => {
throw new Error( throw new Error(
`Test file not found! Create file "test/api/${methodName}/index.ts".` `Test file not found! Create file "test/api/${methodName}/index.ts".`