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

ReflectionTestUtils: Add potential problem location to error message when student code throws an exception #265

Open
Strohgelaender opened this issue Jan 14, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@Strohgelaender
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
When using the Method ReflectionTestUtils:invokeMethod to execute student code, and the code of the student throws an exception, the following error message gets shown:

grafik

This message contains the exception type and message, but not where this exception was thrown.

Describe the solution you'd like
Ares already has a feature to include the potential problem location to exception. This should be reused here and added to the test feedback.

Describe alternatives you've considered
The current workaround is to use invokeMethodRethrowing instead of invokeMethod.

Ares-Version you are using
1.11.1

@MaisiKoleni
Copy link
Collaborator

This might be a more complex change, so I doubt I have time for that. It would probably involve copying the stack trace in ReflectionTestUtils.

@MaisiKoleni MaisiKoleni added the enhancement New feature or request label Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants