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

Added tests to verify proper output from getErrorMessage() #10711

Merged
merged 2 commits into from
Jan 2, 2024

Conversation

garymejia
Copy link
Contributor

Tests were added as requested from the conversation in the merged pull request #10700. The three tests added aim to verify the correct output from the getErrorMessage function. Specifically when the ParserResult is empty, not empty, or has duplicate messages added,

  • Change in CHANGELOG.md described in a way that is understandable for the average user (if applicable)
  • [ x ] Tests created for changes (if applicable)
  • [ x ] Manually tested changed features in running JabRef (always required)
  • Screenshots added in PR description (for UI changes)
  • Checked developer's documentation: Is the information available and up to date? If not, I outlined it in this pull request.
  • Checked documentation: Is the information available and up to date? If not, I created an issue at https://github.com/JabRef/user-documentation/issues or, even better, I submitted a pull request to the documentation repository.

…e function. The tests check the output message when ParserResult is empty, not empty, or has duplicates.
@koppor
Copy link
Member

koppor commented Dec 22, 2023

Thank you for the first tests. There should also be tests for invalid BibTeX files. Maybe, you can add some minimal examples of non-working BibTeX files? (This is also very hard and time consuming to craft, but a good excercise)

@garymejia
Copy link
Contributor Author

Okay I will give it a shot.

@koppor
Copy link
Member

koppor commented Jan 2, 2024

Happy new year 🎉🎉. To reduce the number of opened PRs, I'll go ahead with merge.

You are welcome to craft a follow-up PR if you want.

@koppor koppor enabled auto-merge January 2, 2024 12:08
@koppor koppor added this pull request to the merge queue Jan 2, 2024
Merged via the queue into JabRef:main with commit 37d0518 Jan 2, 2024
Siedlerchr added a commit that referenced this pull request Jan 2, 2024
* upstream/main:
  Adds three tests to verify the expected output from the getErroMessage function. The tests check the output message when ParserResult is empty, not empty, or has duplicates. (#10711)
  Extract calls to JabRefFrame and substitute with LibraryTabContainer (#10724)
Siedlerchr added a commit that referenced this pull request Jan 3, 2024
* 'main' of github.com:JabRef/jabref:
  Ignore 429 at link check (#10743)
  Fix color for hovered special fields (#10742)
  Adds three tests to verify the expected output from the getErroMessage function. The tests check the output message when ParserResult is empty, not empty, or has duplicates. (#10711)
  Extract calls to JabRefFrame and substitute with LibraryTabContainer (#10724)
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.

2 participants