Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make test prefix msg configurable #29

Merged
merged 3 commits into from
Oct 3, 2022

Conversation

isaacl
Copy link
Contributor

@isaacl isaacl commented Sep 28, 2022

Test Failed, because it is two words, is harder to parse from the
failure message itself. I think it is better to for the first word
to be as descriptive as possible, so students can easily scan for
the word "Fail" on the far left side.

Maybe it's subjective! Make it configurable.

Test Failed, because it is two words, is harder to parse from the
failure message itself.  I think it is better to for the first word
to be as descriptive as possible, so students can easily scan for
the word "Fail" on the far left side.
@ibrahima
Copy link
Contributor

Hmm, that's an interesting idea, though it's kind of subjective in my opinion. What if instead of having it hardcoded, we make it configurable by passing in an argument to the JSONTestRunner class, say failure_prefix="Test Failed:", and then anyone can override it to whatever they want? Could you implement it that way? Thanks!

@isaacl isaacl changed the title Change "Test Failed: " msg to "Fail: " Make test prefix msg configurable Oct 2, 2022
@isaacl
Copy link
Contributor Author

isaacl commented Oct 2, 2022

done!

Copy link
Contributor

@ibrahima ibrahima left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! Thanks for your contribution!

@ibrahima ibrahima merged commit abcf687 into gradescope:master Oct 3, 2022
@isaacl isaacl deleted the statusMessage branch October 15, 2022 21:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants