feat(testing): add declarative scenario runner for agent evaluation#1287
Open
diiviikk5 wants to merge 1 commit intomofa-org:mainfrom
Open
feat(testing): add declarative scenario runner for agent evaluation#1287diiviikk5 wants to merge 1 commit intomofa-org:mainfrom
diiviikk5 wants to merge 1 commit intomofa-org:mainfrom
Conversation
Contributor
Author
f7b5087 to
ed16729
Compare
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
closes #1279
Add a declarative
ScenarioRunnertomofa-testingthat loads YAML/JSON scenario specs, configures the existing mocks automatically, runs an async scenario body, and validates structured expectations into aTestReport.Builds On my previous prs
mofa-testingmocks and frameworkMockClockWhat This Adds
ScenarioSpec::from_yaml_strandScenarioSpec::from_json_strscenariomodule inmofa-testingScenarioContextfor configured mock backend, bus, clock, and tool accessWhy This Matters
mofa-testingalready provides strong low-level primitives. This PR adds a higher-level declarative layer that makes end-to-end agent evaluation reproducible and easier to adopt across contributors. It is a direct step toward a real testing and evaluation platform for MoFA agents.How I Tested
cargo test -p mofa-testing --test scenario_runner_testscargo test -p mofa-testing --test integration