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

feat(tests): test SCENARIO.md #13

Merged
merged 1 commit into from
Jun 26, 2020
Merged

feat(tests): test SCENARIO.md #13

merged 1 commit into from
Jun 26, 2020

Conversation

majensen
Copy link
Contributor

@majensen majensen commented Jun 25, 2020

This patch adds a simple pytest suite in the new dir 'tests'. It uses the handy "CliRunner" in the click.testing package to run each command as it would be run on the command line.

The tests simply assert that each command succeeds.

Added a tox.ini, so you can use 'tox' (pip install tox) to build and run in fresh virtual environment in one command (the command is ... wait for it ... tox).

This patch adds a simple pytest suite in the new dir 'tests'.
It uses the handy
["CliRunner"](https://click.palletsprojects.com/en/7.x/testing/) in
the click.testing package to run each command as it would be run
on the command line.
The tests simply assert that each command succeeds.
Added a tox.ini, so you can use 'tox' (pip install tox) to
build and run in fresh virtual environment in one command (the
command is ... wait for it ... tox).
@majensen
Copy link
Contributor Author

Another slightly fancy thing this does is add sap218/jabberwocky-tests as a submodule to jabberwocky proper (in the tests directory), so the test uses the actual sample files that are provided there. That is, this commit doesn't copy those files and so create artifacts that will go stale. If you make updates to jabberwocky-tests, you can git-pull those updates into the submodule here, update the tests, etc.

@sap218
Copy link
Owner

sap218 commented Jun 26, 2020

Thank you very much!

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