Skip to content

Add: Add test cases for non-default styles in CitationStyleTest#8828

Merged
Siedlerchr merged 4 commits intoJabRef:mainfrom
josepylee:test-for-citationstyle
May 22, 2022
Merged

Add: Add test cases for non-default styles in CitationStyleTest#8828
Siedlerchr merged 4 commits intoJabRef:mainfrom
josepylee:test-for-citationstyle

Conversation

@josepylee
Copy link
Copy Markdown
Contributor

@josepylee josepylee commented May 18, 2022

Adding test cases to help improve testing for the citation styles.

Added two test cases to check citation styles non-default (IEEE) styles as the other styles were not being tested. Added testACMCitation and testAPACitation to cover the corresponding citation styles, which are imported from (build/resources/main/csl-styles/acm-siggraph.csl) and (build/resources/main/csl-styles/apa-6th-edition.csl). Also, added a test case for discoverCitationStyles to improve code coverage for the CitationStyle class.

  • 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 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.

josepylee added 2 commits May 18, 2022 12:45
Added test cases to check citation styles for:
 - ACM SIGGRAPH
 - American Psychological Association 6th edition

Also, added test case for discoverCitationStyles to improve code coverage of the CitationStyle class.
remove unnecessary blank space, added appropriate exception
@ThiloteE ThiloteE added the dev: code-quality Issues related to code or architecture decisions label May 19, 2022
@Siedlerchr Siedlerchr added the status: ready-for-review Pull Requests that are ready to be reviewed by the maintainers label May 21, 2022
@calixtus
Copy link
Copy Markdown
Member

calixtus commented May 21, 2022

I'm good with the test for discovercitationstyles. I'm not so sure about the two test for the styles. You basically do the test work for csl in our package. I think the two tests are just misplaced here, as they don't really test our logic, but the logic of csl...

@Siedlerchr
Copy link
Copy Markdown
Member

I was not sure about that either, We also have those in CitationStyleGeneratorTest where we test issue/number etc fields

* upstream/main:
  Fix right clicking a group and choosing "remove selected entries from this group" leads to error when Bibtex source tab is selected (JabRef#8821)
  Fix single identifier cannot be opened on click (JabRef#8838)
  Add Pubmed/Medline Query Transformer (JabRef#8818)
  adjust and add testcases for FileAnnotationViewModel (JabRef#8830)
  Append config instead of replacing (JabRef#8834)
  Fix eclipse config (JabRef#8835)
  Add Nemo file manager (JabRef#8831)
  Fix missing clear action on pressing esc within the "Filter groups" field (JabRef#8829)
@Siedlerchr
Copy link
Copy Markdown
Member

I've moved the two style specific tests to CitationStyleGeneratorTest class

@Siedlerchr Siedlerchr merged commit 264357c into JabRef:main May 22, 2022
Siedlerchr added a commit to fly-ing-fish/jabref that referenced this pull request May 22, 2022
…-masked-characters#8787

* upstream/main:
  Add: Add test cases for non-default styles in CitationStyleTest (JabRef#8828)
  Open event log when clicking on collapsed notification (JabRef#8837)
  Fix right clicking a group and choosing "remove selected entries from this group" leads to error when Bibtex source tab is selected (JabRef#8821)
  Fix single identifier cannot be opened on click (JabRef#8838)
  Add Pubmed/Medline Query Transformer (JabRef#8818)
  adjust and add testcases for FileAnnotationViewModel (JabRef#8830)
  Append config instead of replacing (JabRef#8834)
  Fix eclipse config (JabRef#8835)
  Add Nemo file manager (JabRef#8831)
  Fix missing clear action on pressing esc within the "Filter groups" field (JabRef#8829)
  Update bouncycalse to new base version (JabRef#8827)
  add: add test cases for FileUtil (JabRef#8810)
  Restrict use of standard streams (JabRef#8816)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev: code-quality Issues related to code or architecture decisions 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