1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-14 08:27:03 +03:00
juvix/tests/smoke/Commands/dev/termination.smoke.yaml
Jonathan Cubides 8805a02eff
Use Smoke instead of shelltestrunner (#1710)
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.
2023-01-10 12:49:56 +01:00

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