fix(core): update

This commit is contained in:
2020-07-11 15:52:31 +00:00
parent 4066d9b0e8
commit 984d551bd6
2 changed files with 15 additions and 3 deletions

View File

@@ -179,7 +179,11 @@ export class TapParser {
)}`
);
}
if (this.getErrorTests().length === 0) {
if (!this.expectedTests) {
console.log(cs('Error: No tests were defined. Therefore the testfile failed!', 'red'));
} else if (this.expectedTests !== this.receivedTests) {
console.log(cs('Error: The amount of received tests and expectedTests is unequal! Therefore the testfile failed', 'red'));
} else if (this.getErrorTests().length === 0) {
console.log(`${logPrefixes.TapPrefix} ${cs(`All tests are successfull!!!`, 'green')}`);
} else {
console.log(