diff --git a/tools/src/tester/StoryEvaluator.ts b/tools/src/tester/StoryEvaluator.ts index 970f4d6ed..53d060260 100644 --- a/tools/src/tester/StoryEvaluator.ts +++ b/tools/src/tester/StoryEvaluator.ts @@ -15,7 +15,7 @@ export default class StoryEvaluator { story: Story display_path: string full_path: string - skipped: boolean = false + has_errors: boolean = false result: Result = Result.PASSED chapter_reader: ChapterReader @@ -48,8 +48,8 @@ export default class StoryEvaluator { } async #evaluate_chapters (chapters: Chapter[]): Promise { - let skipped: boolean = this.skipped - if (skipped) return [] + if (this.has_errors) return [] + let skipped: boolean = this.has_errors const evaluations: ChapterEvaluation[] = [] @@ -75,7 +75,7 @@ export default class StoryEvaluator { } catch (error) { if (!(error instanceof ResponseError)) throw error this.result = Result.ERROR - this.skipped = true + this.has_errors = true evaluations.push({ title, result: Result.ERROR, message: (error).message }) } }