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

Keep track of errors #20

Open
arsalan0c opened this issue Feb 20, 2020 · 0 comments
Open

Keep track of errors #20

arsalan0c opened this issue Feb 20, 2020 · 0 comments
Assignees
Labels

Comments

@arsalan0c
Copy link
Collaborator

Currently, testing of functionality that involves errors is not feasible. This is due to the error function which aborts the program.
As such, instead of invoking error when needed, the following can be done:

Keep track of the error message in a global data structure.
Subsequently check the error messages stored in the data structure as part of the tests in order to verify the expected behaviour of the program.

@anubh-v anubh-v self-assigned this Feb 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants