mirror of
https://github.com/anoma/juvix.git
synced 2024-12-14 08:27:03 +03:00
8805a02eff
This PR adds smoke tests using [Smoke tool](https://github.com/SamirTalwar/smoke) for all the shell tests we have. One reason for adopting Smoke instead of the previous tool, `shelltestrunner`, is that tests are declared cleanly and simply using Smoke Yaml syntax compared to shelltestrunner's syntax. To add a new smoke test, create a file with the suffix ".smoke.yaml" in the `tests/smoke` folder. In such a folder, you can also find examples of how to test the CLI.
37 lines
725 B
YAML
37 lines
725 B
YAML
working-directory: ./../../../../tests
|
|
|
|
tests:
|
|
- name: requires-subcommand
|
|
command:
|
|
- juvix
|
|
- dev
|
|
- termination
|
|
stderr:
|
|
contains: |
|
|
Usage: juvix dev termination COMMAND
|
|
exit-status: 1
|
|
|
|
- name: calls-autocompletion-requires-files-arg
|
|
command:
|
|
- juvix
|
|
- dev
|
|
- termination
|
|
- calls
|
|
- --help
|
|
stdout:
|
|
contains: |
|
|
JUVIX_FILE
|
|
exit-status: 0
|
|
|
|
- name: graph-cmd-autocompletion-requires-files-arg
|
|
command:
|
|
- juvix
|
|
- dev
|
|
- termination
|
|
- graph
|
|
- --help
|
|
stdout:
|
|
contains: |
|
|
JUVIX_FILE
|
|
exit-status: 0
|