Skip to content

Commit 6a1a1bd

Browse files
committed
Make student test grading block optional
1 parent a8b52ed commit 6a1a1bd

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

dist/grader/types.d.ts

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/grader/Grader.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ class Grader {
385385
mutantResults = await this.builder.mutationTest()
386386
}
387387
} else if (
388-
this.config.build.student_tests.grading ===
388+
this.config.build.student_tests?.grading ===
389389
'student-impl-coverage-report-only' &&
390390
this.config.submissionFiles.testFiles.length > 0
391391
) {
@@ -411,7 +411,7 @@ class Grader {
411411
const expectedArtifacts = this.config.build.artifacts || []
412412

413413
if (
414-
this.config.build.student_tests.grading ===
414+
this.config.build.student_tests?.grading ===
415415
'student-impl-coverage-report-only'
416416
) {
417417
const passingTestCount = studentTestResults?.filter(

src/grader/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export interface BuildConfig {
99
preset: 'checkstyle'
1010
policy: 'fail' | 'warn' | 'ignore'
1111
}
12-
student_tests: {
12+
student_tests?: {
1313
grading: 'none' | 'mutation' | 'student-impl-coverage-report-only'
1414
}
1515
}

0 commit comments

Comments
 (0)