-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In order to test code with both postgreqsl and myxql adapters, we use a separate MIX_ENV `test_myxql`. * test Repo adapter is determined at compile time. * docker-compose-test adds a MySQL container * to run the tests with myxql adapter, simply run `MIX_ENV=test_myxql mix test`
- Loading branch information
Jean Parpaillon
committed
Aug 31, 2020
1 parent
a69cf7a
commit b655296
Showing
6 changed files
with
47 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
defmodule EctoJob.Test.Repo do | ||
use Ecto.Repo, otp_app: :ecto_job, adapter: Ecto.Adapters.Postgres | ||
adapter = Application.compile_env!(:ecto_job, __MODULE__)[:adapter] | ||
use Ecto.Repo, otp_app: :ecto_job, adapter: adapter | ||
end |