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

Bugfix/issue 821 ignore errors during annotation scan #822

Merged

Conversation

l-1squared
Copy link
Collaborator

No description provided.

Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
The test logger uses a non threadsafe static list to record log events that appear on any class to which it is attached.

A static field is not required for the purposes of this class, which is recording log events during a single run of a single test class. In fact it is detrimental, for the register could contain lons from parallel runs. Therefore the static field was made an instance field

Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
In commit fd97825 a catch clause was removed that omitted errors from the annotation evaluator that were from reading annotations that simply don't have a value method, because they were never meant to be tags.
This results in JGiven printing lots of errors for every annation that could possbliy exist on a test class or method.

Therefore the catch clause was reintroduced an a test for its existence was added.

Signed-off-by: l-1sqared <30831153+l-1squared@users.noreply.github.com>
@l-1squared l-1squared merged commit 084678e into master Feb 1, 2022
@l-1squared l-1squared deleted the bugfix/Issue-821-ignore-errors-during-annotation-scan branch February 1, 2022 08:22
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.

JGiven prints multiple errors while scanning annotations that are not Tags
2 participants