Skip to content

Commit

Permalink
update tests/README.md (fixes #2086) (#2087)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <dogi@users.noreply.github.com>
  • Loading branch information
JLKwong and dogi authored Mar 15, 2021
1 parent e3c9544 commit f3e7cc4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 14 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.25.25",
"version": "1.25.26",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down
32 changes: 19 additions & 13 deletions tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ nssidname='Wifiname' nwifipass='wifipass' ./wifi.bats
`test.sh` gives extra information ontop of running the tests using bats including
Image release, CLI version, and git branch name
```bash
./test.sh detect.bats detectrpi.bats # pick what you want
./test.sh detect.bats version.bats # pick what you want
./test.sh all # test everything (variables inside test.sh as well)
yes | ./test.sh all # skip pressing any key to move forward for network tests
./test.sh services
Expand All @@ -36,21 +36,27 @@ Note: Some tests are not included because they have restarts

Example output:
```bash
root@treehouses:~/cli/tests# ./test.sh detect.bats detectrpi.bats
root@treehouses:~/cli/tests# ./test.sh detect.bats version.bats

Branch - tests-time
Image - release-125
Version - 1.16.25
Branch - master
Image - release-139
Version - 1.25.19

βœ“ detect
βœ“ detectrpi
βœ“ detectrpi model

3 tests, 0 failures

real 0m2.460s
user 0m1.617s
sys 0m1.048s
βœ“ detect bluetooth
βœ“ detect rpi
βœ“ detect rpi model
βœ“ detect wifi
βœ“ detect arm
βœ“ version
βœ“ version contributors
βœ“ version contributors

9 tests, 0 failures

real 0m49.013s
user 0m5.294s
sys 0m3.045s

root@treehouses:~/cli/tests#
```

0 comments on commit f3e7cc4

Please sign in to comment.