Docs · API reference · Motus.Abstractions
IPerformanceReporter Interface#
Opt-in reporter interface for receiving performance metrics collected during test execution. Reporters implement both IReporter and IPerformanceReporter to receive performance events. Separate from IReporter to avoid default interface methods, which conflict with NativeAOT trimming.
public interface IPerformanceReporter
Methods#
OnPerformanceMetricsCollectedAsync(PerformanceMetrics, PerformanceBudgetResult, TestInfo) Method#
Called when performance metrics have been collected for a test.
System.Threading.Tasks.Task OnPerformanceMetricsCollectedAsync(Motus.Abstractions.PerformanceMetrics metrics, Motus.Abstractions.PerformanceBudgetResult? budgetResult, Motus.Abstractions.TestInfo test);
Parameters#
metrics PerformanceMetrics
The collected performance metrics.
budgetResult PerformanceBudgetResult
The budget evaluation result, or null if no budget is configured.
test TestInfo
The test that produced the metrics.