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

The easy way to extract the message associated with "TestFail" #371

Closed
sayakpaul opened this issue Jan 31, 2019 · 2 comments
Closed

The easy way to extract the message associated with "TestFail" #371

sayakpaul opened this issue Jan 31, 2019 · 2 comments

Comments

@sayakpaul
Copy link

Hi.

When a test fails (i.e. the submission code does not conform to the solution code) I get a long error stack. So, instead of that if I directly want to navigate to the message associated with TestFail what would be the easy way to do that?
image

@hermansje
Copy link
Member

You would wrap your code in a try-catch to handle the TestFail exception and extract the information you want from the exception.

@sayakpaul
Copy link
Author

Sure. That sounds good.

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

No branches or pull requests

2 participants