You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add debugging output section to TESTS.md and adjust formatting (#768)
* Add debugging output section to TESTS.md and adjust formatting
* Add debugging guidance to README and TESTS.md; create DEBUGGING_LOCALLY.md
* Update debugging references in documentation for clarity and consistency
* Improve documentation for debugging: standardize casing and clarify file descriptor reference
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,8 @@
4
4
5
5
Exercism Exercises in Bash
6
6
7
+
If you are solving exercises locally and need help with Bats debug output, see [Debugging with `bats`](https://exercism.org/docs/tracks/bash/debugging).
8
+
7
9
## Contributing Guide
8
10
9
11
Please see the [contributing guide](https://github.com/exercism/bash/blob/master/CONTRIBUTING.md) for information.
Copy file name to clipboardExpand all lines: docs/TESTS.md
+5-4Lines changed: 5 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,8 @@ cd /path/to/your/exercise_workspace/bash/whatever
39
39
bats whatever.bats
40
40
```
41
41
42
+
If you want to print debug output while running the tests locally, see [Debugging Locally](/docs/tracks/bash/debugging).
43
+
42
44
## Installing `bats-core`
43
45
44
46
You should be able to install it from your favorite package manager:
@@ -56,8 +58,8 @@ $ brew install bats-core
56
58
🍺 /usr/local/Cellar/bats-core/1.1.0: 13 files, 55KB, built in 4 seconds
57
59
```
58
60
59
-
* The legacy `bats` package also exists in the homebrew ecosystem.
60
-
**_Do not install that by mistake_**: <u>install `bats-core`</u>.
61
+
- The legacy `bats` package also exists in the homebrew ecosystem.
62
+
**_Do not install that by mistake_**: <u>install `bats-core`</u>.
61
63
62
64
### For Linux
63
65
@@ -124,7 +126,7 @@ annotations prepending other tests.
124
126
125
127
### Overriding skips
126
128
127
-
To run all tests, including the ones with `skip` annotations, you can set an environment variable `BATS_RUN_SKIPPED` to the value `true`.
129
+
To run all tests, including the ones with `skip` annotations, you can set an environment variable `BATS_RUN_SKIPPED` to the value `true`.
128
130
One way to set this just for the duration of running bats is:
129
131
130
132
```bash
@@ -153,7 +155,6 @@ Ownership was handed over in 2017: [sstephenson/bats#150 (comment)][bats-fork].
153
155
154
156
If you have the original sstephenson/bats installed (check with `bats -v` reporting a version number less than 1.0), then you should switch to bats-core; otherwise you may find yourself [experiencing unexplained test failures][legacy-failures].
0 commit comments