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

Add unit tests for org.jabref.gui classes #7579

Merged
merged 2 commits into from
Mar 29, 2021
Merged

Add unit tests for org.jabref.gui classes #7579

merged 2 commits into from
Mar 29, 2021

Conversation

ningxie1991
Copy link
Contributor

@ningxie1991 ningxie1991 commented Mar 28, 2021

Test coverage for org.jabref.gui package is rather low (8%). This pull request adds unit tests to 3 classes under the gui package, increasing their respective line coverage from 0% to 100%. They contribute to issue #6207.
Tests added:

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

1. AppendPersonNamesStrategyTest
2. PersonNameStringConverterTest
3. ReplaceStringViewModelTest
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Mar 28, 2021
@calixtus
Copy link
Member

Two approvals == mergable.
Thanks for the tests!

@calixtus calixtus merged commit c5b3a43 into JabRef:main Mar 29, 2021
Siedlerchr added a commit that referenced this pull request Apr 9, 2021
* upstream/main: (25 commits)
  Fix NumberFormatException in BracketedPattern (#7600)
  Update MAINTAINERS (#7601)
  Fix CSL update (#7592)
  Add unit tests for org.jabref.gui classes (#7579)
  Squashed 'buildres/csl/csl-styles/' changes from 30fb68e..e1acabe
  Bump tika-core from 1.25 to 1.26 (#7589)
  Revert "Skip Mac OS build if secret not present (#7591)" (#7594)
  Optimize saving (#7568)
  Skip Mac OS build if secret not present (#7591)
  Rename master to main in dev help
  Update tests-fetchers.yml
  Update refresh-journal-lists.yml
  Update deployment.yml
  Rename master to main in coding readme
  Rename master to main in citation style update
  Rename master to main in gitversion config
  Fix column sort order gets overwritten (#7573)
  Add some hints on test tooling (#7585)
  Add "Update Gradle Wrapper Action" (#7584)
  Bump classgraph from 4.8.102 to 4.8.104 (#7587)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants