Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add utility to assert hit terms #2761

Open
wants to merge 3 commits into
base: integration
Choose a base branch
from

Conversation

apmoriarty
Copy link
Collaborator

Added a utility to assert hit terms and migrated one of the hit term tests over to the new utility. This allows developers to describe the expected hit terms for most basic boolean logic expressions.

Expected hit terms can be required or optional

Expected hit term sets can be 'all of' or 'any of'

HitTermAssertions now throws an error if unexpected hit terms are returned
@apmoriarty apmoriarty marked this pull request as ready for review February 13, 2025 18:17
…estLimitReturnedGroupsToHitTermGroups

Migrate more variables out of method parameters and into class level variables with appropriate setters. Refactor 'runTestQuery' to be more modular.

Add expected hit terms to test, update HitTermAssertions to expect no hit terms in certain cases
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants