Skip to content

Commit

Permalink
# skipped -> has_errors
Browse files Browse the repository at this point in the history
Signed-off-by: Theo Truong <[email protected]>
  • Loading branch information
nhtruong committed May 28, 2024
1 parent 5edf57a commit 81059ed
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/src/tester/StoryEvaluator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,14 @@ export default class StoryEvaluator {

async #evaluate_chapters (chapters: Chapter[]): Promise<ChapterEvaluation[]> {
if (this.has_errors) return []
let skipped: boolean = this.has_errors
let has_errors: boolean = this.has_errors

const evaluations: ChapterEvaluation[] = []

for (const chapter of chapters) {
const evaluator = new ChapterEvaluator(chapter)
const evaluation = await evaluator.evaluate(skipped)
skipped = skipped || evaluation.result === Result.ERROR
const evaluation = await evaluator.evaluate(has_errors)
has_errors = has_errors || evaluation.result === Result.ERROR
if (evaluation.result === Result.FAILED) this.result = Result.FAILED
if (evaluation.result === Result.ERROR) this.result = Result.ERROR
evaluations.push(evaluation)
Expand Down

0 comments on commit 81059ed

Please sign in to comment.