Packages

Instant code-reloader and test runner for Elixir in one package

Current section

Files

Jump to
mr_t lib mr_t monitor test.ex
Raw

lib/mr_t/monitor/test.ex

defmodule MrT.Monitor.Test do
@moduledoc """
Watcher/monitor module responsible for `test` files
"""
use ExFSWatch, dirs: MrT.Config.test_dirs
def callback(:stop) do
IO.puts "STOP"
end
def callback(file_path, _events) do
if (Path.extname file_path) in MrT.Config.test_extensions do
MrT.EventBus.event_for_tests(file_path)
end
end
end