2020-11-10 14:45:38 +00:00
|
|
|
# if Code.ensure_loaded?(ExSync) && function_exported?(ExSync, :register_group_leader, 0) do
|
|
|
|
# ExSync.register_group_leader()
|
|
|
|
# end
|
2021-05-18 11:25:48 +00:00
|
|
|
|
|
|
|
alias Bonfire.Repo
|
|
|
|
alias Bonfire.Data
|
|
|
|
alias Bonfire.Me
|
|
|
|
alias Bonfire.Social
|
|
|
|
alias Bonfire.Common
|
2022-03-16 04:30:58 +00:00
|
|
|
use Common.Utils
|
|
|
|
import Bonfire.Me.Fake
|
2022-09-02 02:52:34 +00:00
|
|
|
import Untangle
|
2022-03-16 04:30:58 +00:00
|
|
|
|
2022-10-24 19:37:30 +00:00
|
|
|
if module_enabled?(Bonfire.Common.Test.Interactive) and Mix.env() == :test do
|
2022-03-16 04:30:58 +00:00
|
|
|
# to run tests from iex
|
|
|
|
|
|
|
|
# Code.compiler_options(ignore_module_conflict: true)
|
|
|
|
# Code.compile_file("~/.iex/iex_watch_tests.exs", File.cwd!())
|
|
|
|
|
2022-03-16 23:39:05 +00:00
|
|
|
unless GenServer.whereis(Bonfire.Common.Test.Interactive) do
|
|
|
|
{:ok, pid} = Bonfire.Common.Test.Interactive.start_link()
|
2022-03-16 04:30:58 +00:00
|
|
|
|
|
|
|
# Process will not exit when the iex goes out
|
|
|
|
Process.unlink(pid)
|
|
|
|
end
|
|
|
|
|
2022-09-12 04:34:14 +00:00
|
|
|
Bonfire.Common.Test.Interactive.Helpers.ready()
|
2022-03-16 04:30:58 +00:00
|
|
|
else
|
2022-09-23 02:42:10 +00:00
|
|
|
if Mix.env() == :test, do: info("IExWatchTests is not running")
|
2022-03-16 04:30:58 +00:00
|
|
|
end
|
2022-09-12 04:34:14 +00:00
|
|
|
|
2022-10-24 19:37:30 +00:00
|
|
|
# if Code.ensure_loaded?(ExSync) and function_exported?(ExSync, :register_group_leader, 0) do
|
|
|
|
# ExSync.register_group_leader()
|
|
|
|
# end
|
2022-09-14 07:35:42 +00:00
|
|
|
|
2022-09-12 04:34:14 +00:00
|
|
|
import_if_enabled(Bonfire.Common.Test.Interactive.Helpers)
|