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 user tests #75

Merged
merged 11 commits into from
Nov 30, 2018
Merged

Add user tests #75

merged 11 commits into from
Nov 30, 2018

Conversation

foresterre
Copy link
Owner

See the attached issue.


Issue: #71

We're actually doing a bit of a dance because currently we exit the program with
std::process::exit(0) if we run --license or -H <value>.
To test whether these commands work right now, we use Command and check whether the
value of the stdout starts with what we expect.
foresterre and others added 9 commits November 27, 2018 18:24
A future addition which would greatly simplify writing these tests
would be parameterized tests. Something to look into after the next release.

Probably the current set of integration tests can be simplified a bit more too.
In sic_lib::processor::conversion we already test using "manual
parameterized like loop over vec" tests.
The way it is handled over there is suboptimal in at least one way:
It is registered as a single test case, even though we test all formats.
@foresterre foresterre merged commit 785ae7e into master Nov 30, 2018
@foresterre foresterre deleted the user_tests branch November 30, 2018 14:21
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.

1 participant