Skip to content

Commit d07bdb5

Browse files
committed
update docs and changelog
1 parent 185334e commit d07bdb5

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# v2.4.0
22

33
- Add ability to test suite from a url
4+
- Add ability to test suite from stdin
45

56
# v2.3.0
67

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -201,10 +201,13 @@ $ ./commander test
201201
$ ./commander test /tmp/test.yaml
202202

203203
# Execute a single test
204-
$ ./commander test /tmp/test.yaml "my test"
204+
$ ./commander test /tmp/test.yaml --filter "my test"
205+
206+
# Execute suite from stdin
207+
$ cat /tmp/test.yaml | ./commander test -
205208

206209
# Execute suite from url
207-
$ ./commander test https://raw.githubusercontent.com/commander-cli/commander/master/integration/unix/commander_test.yaml
210+
$ ./commander test https://your-url/commander_test.yaml
208211

209212
# Execute suites within a test directory
210213
$ ./commander test --dir /tmp

cmd/commander/commander.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,15 @@ Tests are always executed in alphabetical order.
5353
5454
Examples:
5555
56+
Directory test:
57+
commander test --dir /your/dir/
58+
59+
Stdin test:
60+
cat commander.yaml | commander test -
61+
62+
HTTP test:
63+
test https://your-url/commander_test.yaml
64+
5665
Filtering tests:
5766
test commander.yaml --filter="my test"
5867

0 commit comments

Comments
 (0)