[ENHANCEMENT] [MER-5487] scenario testing for authoring analytics - #6729
Merged
Conversation
andersweinstein
force-pushed
the
MER-5487-author-analytics-testing
branch
from
July 15, 2026 17:05
b8999cd to
262421c
Compare
Contributor
Contributor
AI Review — performanceNo issues found |
Contributor
AI Review — securityNo issues found |
Contributor
AI Review — elixirNo issues found |
darrensiegel
approved these changes
Jul 19, 2026
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
Adds scenario-based integration coverage for authoring analytics across realistic learner workflows and multiple course sections. Authoring analytics are those presented via Authoring Project Sidebar -> Improve -> Insights.
This introduces:
request_hintandreset_activityscenario directives for modeling hinted responses and repeated activity attempts.assert.insightsassertion that queries the sameBrowseInsightsapplication interface used by the authoring analytics UI.The comprehensive scenario covers:
num_correct,num_attempts,num_hints,num_first_attempts,num_first_attempts_correct,eventually_correct,first_attempt_correct, andrelative_difficulty.Snapshot generation is synchronous in the scenario test configuration, so no job-waiting or Oban queue-draining support was added.
Implementation Notes
Oli.Analytics.Summary.BrowseInsights.browse_insights/3rather than duplicating analytics query logic.exists: false.Oli.Scenarios.execute_file/2.Verification
mix compile --warnings-as-errors