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

Start revising cli tests #365

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

rpspringuel
Copy link
Contributor

Here's a sample of how I'm thinking of revising the scripted cli tests. The basic idea is to capture the expected output (either to stdout or stderr or both) and make sure it's correct. Right now I've not expanded the number of tests, but I could see testing the stdout output and the stderr output in separate tests (e.g. stdin_and_stdin.sh would become 2 tests).

Some form of VersionManager.py (from the main repository) will probably need to be added to the repository for this to work (as version number appears in some output, e.g. version.sh).

What do people think about this revision?

@eschwab
Copy link
Contributor

eschwab commented Feb 10, 2025

Do we need to check for gregorio version?

Or is it good enough to change:

EXPECTEDOUT="% File generated by gregorio 6.0.0
\GregorioTeXAPIVersion{6.0.0}%

to:

EXPECTEDOUT="% File generated by gregorio $gregorio-version
\GregorioTeXAPIVersion{$gregorio-version}%

$gregorio-version would need to be exported in gregorio-test.sh

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