Skip to content

Commit

Permalink
improve tests
Browse files Browse the repository at this point in the history
  • Loading branch information
osterman committed Dec 23, 2024
1 parent 0dacb3c commit 4f0f582
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions tests/test_cases.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ tests:
expect:
stdout:
- '(build[/\\]atmos|atmos[/\\]atmos)'
stderr:
- "^$"
exit_code: 0

- name: "atmos"
Expand All @@ -20,6 +22,8 @@ tests:
stdout:
- "atmos.yaml CLI config file specifies the directory for Atmos stacks as stacks,"
- "but the directory does not exist."
stderr:
- "^$"
exit_code: 0

- name: atmos --help
Expand Down Expand Up @@ -48,6 +52,8 @@ tests:
- "\\bworkflow\\b"
- "Flags:"
- "for more information about a command"
stderr:
- "^$"
exit_code: 0

- name: atmos version
Expand All @@ -60,7 +66,8 @@ tests:
expect:
stdout:
- '👽 Atmos (\d+\.\d+\.\d+|test) on [a-z]+/[a-z0-9]+'
stderr: []
stderr:
- "^$"
exit_code: 0

- name: atmos version --check
Expand All @@ -74,7 +81,8 @@ tests:
expect:
stdout:
- '👽 Atmos (\d+\.\d+\.\d+|test) on [a-z]+/[a-z0-9]+'
stderr: []
stderr:
- "^$"
exit_code: 0

- name: atmos docs
Expand All @@ -86,6 +94,8 @@ tests:
- "docs"
expect:
exit_code: 0
stderr:
- "^$"

- name: atmos docs myapp
enabled: true
Expand All @@ -98,6 +108,8 @@ tests:
expect:
stdout:
- "Example Terraform Weather Component"
stderr:
- "^$"
exit_code: 0

- name: atmos non-existent
Expand Down Expand Up @@ -138,6 +150,8 @@ tests:
expect:
stdout:
- 'append_user_agent: Atmos/(\d+\.\d+\.\d+|test) \(Cloud Posse; \+https:\/\/atmos\.tools\)'
stderr:
- "^$"
exit_code: 0

- name: atmos describe config
Expand All @@ -151,4 +165,6 @@ tests:
expect:
stdout:
- '"append_user_agent": "Atmos/(\d+\.\d+\.\d+|test) \(Cloud Posse; \+https:\/\/atmos\.tools\)"'
stderr:
- "^$"
exit_code: 0

0 comments on commit 4f0f582

Please sign in to comment.