Skip to content

Commit

Permalink
update readne
Browse files Browse the repository at this point in the history
  • Loading branch information
jarlah committed Nov 18, 2024
1 parent ac4b7fd commit 28ec287
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ container(:redis, Testcontainers.RedisContainer.new())

To run/wrap testcontainers around a project use the testcontainers.test task.

`mix testcontainers.test [--database postgres|mysql]`
`mix testcontainers.test [--database postgres|mysql] [--watch dir ...]`

to use postgres you can just run

Expand All @@ -121,6 +121,12 @@ config :my_app, MyApp.Repo,

Activate reuse of database containers started by mix task with adding `testcontainers.reuse.enable=true` in `~/.testcontainers.properties`. This is experimental.

You can pass arguments to mix test by append -- to the of the command like this:

`mix testcontainers.test -- --exclude flaky --stale`

In the example above we are excluding flaky tests and using the --stale option.

### Logging

Testcontainers use the standard Logger, see https://hexdocs.pm/logger/Logger.html.
Expand Down

0 comments on commit 28ec287

Please sign in to comment.