Skip to content

Commit

Permalink
Add notes about test helpers, closes #13740
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Jul 27, 2024
1 parent 25b5898 commit 3f0813e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,13 +137,20 @@ bin/elixirc lib/elixir/lib/string.ex -o lib/elixir/ebin
bin/elixir lib/elixir/test/elixir/string_test.exs
```

Some test files need their `test_helper.exs` to be explicitly required
before, such as:

```sh
bin/elixir -r lib/logger/test/test_helper.exs lib/logger/test/logger_test.exs
```

You can also use the `LINE` env var to run a single test:

```sh
LINE=123 bin/elixir lib/elixir/test/elixir/string_test.exs
````

To recompile (including Erlang modules):
To recompile all (including Erlang modules):

```sh
make compile
Expand Down

0 comments on commit 3f0813e

Please sign in to comment.