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

Generalizing AnnotationBasedTestSuite to allow custom AnnotatedTestInputs #862

Merged
merged 1 commit into from
Apr 3, 2025

Conversation

ArquintL
Copy link
Member

buildTestInput is currently quite restrictive as it only allows to return an instance of the DefaultAnnotatedTestInput case class. This PR relaxes this constraint such that instances of custom case classes extending AnnotatedTestInput can be returned.
This allows us in Gobra to extend a test input with additional arguments, namely a Gobra instance and an execution context, such that all data necessary to execute a testcase is contained in the corresponding test input. In particular, the execution of a testcase, thus, does not depend on fields of the corresponding test suite making parallel execution of testcases easier.

@ArquintL ArquintL requested a review from marcoeilers March 31, 2025 12:02
Copy link
Contributor

@marcoeilers marcoeilers left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ArquintL ArquintL merged commit 7807892 into master Apr 3, 2025
5 checks passed
@ArquintL ArquintL deleted the arquintl-extensible-test-inputs branch April 3, 2025 11:48
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.

2 participants