mirror of
https://github.com/bonfire-networks/bonfire-app.git
synced 2024-04-28 23:38:44 +00:00
33 lines
880 B
Elixir
Executable file
33 lines
880 B
Elixir
Executable file
# if Code.ensure_loaded?(ExSync) && function_exported?(ExSync, :register_group_leader, 0) do
|
|
# ExSync.register_group_leader()
|
|
# end
|
|
|
|
alias Bonfire.Repo
|
|
alias Bonfire.Data
|
|
alias Bonfire.Me
|
|
alias Bonfire.Social
|
|
alias Bonfire.Common
|
|
use Common.Utils
|
|
import Bonfire.Me.Fake
|
|
import Untangle
|
|
|
|
if module_enabled?(Bonfire.Common.Test.Interactive) && Mix.env() == :test do
|
|
# to run tests from iex
|
|
|
|
# Code.compiler_options(ignore_module_conflict: true)
|
|
# Code.compile_file("~/.iex/iex_watch_tests.exs", File.cwd!())
|
|
|
|
unless GenServer.whereis(Bonfire.Common.Test.Interactive) do
|
|
{:ok, pid} = Bonfire.Common.Test.Interactive.start_link()
|
|
|
|
# Process will not exit when the iex goes out
|
|
Process.unlink(pid)
|
|
end
|
|
|
|
Bonfire.Common.Test.Interactive.Helpers.ready()
|
|
else
|
|
info("IExWatchTests is not running")
|
|
end
|
|
|
|
import_if_enabled(Bonfire.Common.Test.Interactive.Helpers)
|