Skip to content

Commit fe89129

Browse files
committed
Add a failing test case and dedicated fixtures
1 parent b282aa0 commit fe89129

4 files changed

Lines changed: 13 additions & 2 deletions

File tree

commander_unix.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,11 @@ tests:
2323
command: ./commander test ./integration/unix/failing_suite.yaml
2424
stdout:
2525
contains:
26+
- ✗ [local] 'file matcher should fail when file and output are different', on property 'Stdout'
2627
- ✗ [local] 'it will fail', on property 'ExitCode'
2728
- ✗ [local] 'test timeout' could not be executed with error message
2829
- Command timed out after 10ms
29-
- "Count: 2, Failed: 2"
30+
- "Count: 3, Failed: 3"
3031
exit-code: 1
3132

3233
it should validate a big output:
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
first line
2+
second line
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
first line
2+
second line
3+
third line

integration/unix/failing_suite.yaml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,9 @@ tests:
77
command: sleep 1
88
config:
99
timeout: 10ms
10-
exit-code: 0
10+
exit-code: 0
11+
12+
file matcher should fail when file and output are different:
13+
command: cat ./integration/unix/_fixtures/file_output_1.txt
14+
stdout:
15+
file: ./integration/unix/_fixtures/file_output_0.txt

0 commit comments

Comments
 (0)