Raxol.Plugins.Testing.Helpers (Raxol v2.0.1)

View Source

Test helper functions for common plugin testing scenarios

Summary

Functions

capture_plugin_logs(fun)

cleanup_temp_directory(temp_dir)

create_temp_directory()

create_test_config(overrides \\ %{})

create_test_files(base_path, file_specs)

simulate_file_change(plugin_pid, path, events \\ [:modified])

simulate_timer_tick(plugin_pid)

with_temp_directory(fun)