Skip to content

Commit 3f0813e

Browse files
committed
Add notes about test helpers, closes #13740
1 parent 25b5898 commit 3f0813e

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

README.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,20 @@ bin/elixirc lib/elixir/lib/string.ex -o lib/elixir/ebin
137137
bin/elixir lib/elixir/test/elixir/string_test.exs
138138
```
139139

140+
Some test files need their `test_helper.exs` to be explicitly required
141+
before, such as:
142+
143+
```sh
144+
bin/elixir -r lib/logger/test/test_helper.exs lib/logger/test/logger_test.exs
145+
```
146+
140147
You can also use the `LINE` env var to run a single test:
141148

142149
```sh
143150
LINE=123 bin/elixir lib/elixir/test/elixir/string_test.exs
144151
````
145152

146-
To recompile (including Erlang modules):
153+
To recompile all (including Erlang modules):
147154

148155
```sh
149156
make compile

0 commit comments

Comments
 (0)