Skip to content

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

Merged
koppor merged 2 commits into
JabRef:mainfrom
garymejia:main
Jan 2, 2024
Merged

Added tests to verify proper output from getErrorMessage()#10711
koppor merged 2 commits into
JabRef:mainfrom
garymejia:main

Conversation

@garymejia

Copy link
Copy Markdown
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

koppor commented Dec 22, 2023

Copy link
Copy Markdown
Member

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
Copy Markdown
Contributor Author

Okay I will give it a shot.

@koppor

koppor commented Jan 2, 2024

Copy link
Copy Markdown
Member

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