Raxol.Plugins.Testing.FrameworkHelpers (Raxol v2.6.0)

View Source

Test helper functions for common plugin testing scenarios. Note: This module provides additional helpers specific to the PluginTestFramework. For basic test helpers, see Raxol.Plugins.Testing.Helpers.

Summary

Functions

capture_plugin_logs(fun)

cleanup_temp_directory(temp_dir)

create_git_test_config(overrides \\ %{})

Creates a test config for git plugin testing with git-specific defaults. Returns as keyword list for compatibility with BaseManager.

create_temp_directory()

create_test_files(base_path, file_specs)

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

simulate_timer_tick(plugin_pid)

with_temp_directory(fun)