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 CLI tests #2

Merged
merged 2 commits into from
Jul 12, 2018
Merged

Add CLI tests #2

merged 2 commits into from
Jul 12, 2018

Conversation

M3t0r
Copy link
Owner

@M3t0r M3t0r commented Jul 12, 2018

To lay the foundation to ensure equal invocation of the installed package, the copied zipapp and the docker image I added a small class that we can use as a fixture to easily test multiple argument combinations.

This also fixes that the help and usage information is now printed to STDERR because I noticed that was wrong while writing the tests.

Executing these tests requires that a `tpl` command is available in
$PATH.

This also lays the ground work for a lot more end-to-end tests of more
features (advanced shadowing testing) and invocation methods (docker).
This is in line with the few BSD tools I tested.

But they still print the version text to STDOUT, which is kind of weird.
@M3t0r M3t0r merged commit e8270d6 into master Jul 12, 2018
@M3t0r M3t0r deleted the feature/cli-tests branch July 15, 2018 22:34
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.

None yet

1 participant