TestFailureDiagnostician (object v0.1.2)

DSPy-powered comprehensive test failure analysis and diagnosis system. Uses GPT-4.1-mini through DSPy signatures to analyze and provide solutions for test failures.

Summary

Functions

Runs comprehensive analysis on all test failures from a test run.

Analyzes a test failure and provides comprehensive diagnosis and solutions.

Returns a specification to start this module under a supervisor.

Gets diagnostic statistics and performance metrics.

Callback implementation for GenServer.init/1.

Functions

analyze_all_failures(test_output)

Runs comprehensive analysis on all test failures from a test run.

Parameters

  • test_output: Complete test output with all failures

Returns

{:ok, comprehensive_analysis} with categorized failures and solutions

analyze_test_failure(test_name, error_output, context \\ %{})

Analyzes a test failure and provides comprehensive diagnosis and solutions.

Parameters

  • test_name: Name of the failing test
  • error_output: Complete error output from the test
  • context: Additional context (file paths, line numbers, etc.)

Returns

{:ok, analysis} with detailed diagnosis and solutions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

get_diagnostic_stats()

Gets diagnostic statistics and performance metrics.

init(opts)

Callback implementation for GenServer.init/1.

start_link(opts \\ [])