Skip to content

Framework for CLI tests with examples#14164

Merged
subhramit merged 8 commits into
JabRef:mainfrom
ravatex:cli-tests-jabref
Oct 24, 2025
Merged

Framework for CLI tests with examples#14164
subhramit merged 8 commits into
JabRef:mainfrom
ravatex:cli-tests-jabref

Conversation

@ravatex

@ravatex ravatex commented Oct 24, 2025

Copy link
Copy Markdown
Contributor

Refs #14129

There are tests currently testing the convert pseudonymize and search subcommands. They do not test anything in depth as that is the role of the jablib module. So the only thing that is ensured is that the IO happens and the results look correct.

Mandatory checks

  • I own the copyright of the code submitted and I license it under the MIT license
  • I manually tested my changes in running JabRef (always required)
  • [/] I added JUnit tests for changes (if applicable)
  • [/] I added screenshots in the PR description (if change is visible to the user)
  • [/] I described the change in CHANGELOG.md in a way that is understandable for the average user (if change is visible to the user)
  • I checked the user 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 updating file(s) in https://github.com/JabRef/user-documentation/tree/main/en.

@subhramit subhramit requested a review from calixtus October 24, 2025 16:37

@calixtus calixtus left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. Thanks, thats a real improvement to our test suite.

@subhramit subhramit added this pull request to the merge queue Oct 24, 2025
Merged via the queue into JabRef:main with commit a1b312a Oct 24, 2025
46 checks passed
merlinymy pushed a commit to merlinymy/jabref that referenced this pull request Nov 19, 2025
* add AbstractJabKitTest for easier CLI testing refactored ArgumentProcessorTest

* added utils for resources and refactored for old code to use them

* Add CLI for pseudonymize

* Add interface to get stdout and stderr from command line execution

* add test for convert, new dependency for the test needed

* added test for search cli

* fix removed unneeded sout statements
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.

3 participants