Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-bell committed Feb 13, 2025
1 parent 8e10fc3 commit 663c346
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 15 deletions.
10 changes: 3 additions & 7 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/grader/Grader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -277,11 +277,11 @@ class Grader {
"Some of your tests failed when run against the instructor's solution. Your tests will not be graded for this submission. Please fix them before resubmitting. "
)
mutantFailureAdvice =
"**Error**: Some of your tests failed when run against the instructor's solution.\n\n Your tests will not be graded for this submission. Please fix them before resubmitting.\n\nHere are your failing test results:\n\n"
"**Error**: Some of your tests failed when run against the instructor's solution. Your tests will not be graded for this submission. Please fix them before resubmitting.\n\n\nHere are your failing test results:\n\n\n"
this.logger.log('visible', 'Here are your failing test results:')
for (const result of studentTestResults) {
if (result.status === 'fail') {
mutantFailureAdvice += `\n❌ ${result.name}: **${result.status}**\n`
mutantFailureAdvice += `\n❌ ${result.name}\n`
mutantFailureAdvice += '```\n' + result.output + '\n```'
this.logger.log('visible', `${result.name}: ${result.status}`)
this.logger.log('visible', result.output)
Expand Down
6 changes: 1 addition & 5 deletions src/grader/builder/GradleBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,7 @@ export default class GradleBuilder extends Builder {
const tr: TestResult = {
name: `${suite.name}.${test.name}`,
status: test.failure || test.error ? 'fail' : 'pass',
output: test.failure
? test.failure.message +
'\n' +
trimStackTrace(test.failure.stackTrace)
: '',
output: test.failure ? trimStackTrace(test.failure.stackTrace) : '',
output_format: 'text'
}
return tr
Expand Down

0 comments on commit 663c346

Please sign in to comment.