test_runner
test_runner
¶
Tests for the EvalRunner.
Classes¶
TestEvalRunner
¶
Functions¶
test_telemetry_fields_in_jsonl
¶
Verify telemetry fields are written to JSONL output.
Source code in src/openjarvis/evals/tests/test_runner.py
test_ipw_ipj_computation
¶
IPW and IPJ should be computed for correct samples.
Source code in src/openjarvis/evals/tests/test_runner.py
test_ipw_ipj_zero_for_incorrect
¶
IPW and IPJ should be 0 for incorrect samples.
Source code in src/openjarvis/evals/tests/test_runner.py
test_mfu_mbu_with_metadata
¶
MFU/MBU should be computed when model metadata is provided.
Source code in src/openjarvis/evals/tests/test_runner.py
test_summary_metric_stats
¶
Summary should include MetricStats for telemetry fields.
Source code in src/openjarvis/evals/tests/test_runner.py
test_summary_json_includes_metric_stats
¶
Summary JSON file should serialize MetricStats fields.
Source code in src/openjarvis/evals/tests/test_runner.py
TestRunnerTokenStats
¶
Functions¶
test_summary_has_total_input_output_tokens
¶
RunSummary should include total token counts.
Source code in src/openjarvis/evals/tests/test_runner.py
test_summary_has_avg_power
¶
RunSummary should include avg_power_watts.