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 support for inherited tests #288

Merged
merged 4 commits into from Oct 22, 2022

Conversation

mannodermaus
Copy link
Owner

@mannodermaus mannodermaus commented Oct 22, 2022

Derived from the feature request expressed by #278, add support for detecting inherited tests to the instrumentation runtime. This catches tests from both abstract classes and interfaces, mirroring the capabilities of JUnit Platform for unit tests.

The key to this change is to make Class<*>.jupiterTestMethods understand inherited methods, too. In contrast to the linked proposal, this will also correctly mark any inherited test as ignored on unsupported devices – therefore, the change should be made to the method, not the runner.

Verified by adding a bunch of instrumentation tests to :core and some new unit tests to :runner.

@mannodermaus mannodermaus self-assigned this Oct 22, 2022
@mannodermaus mannodermaus merged commit fd6c07f into main Oct 22, 2022
@mannodermaus mannodermaus deleted the feature/instrumentation-inherited-tests branch October 22, 2022 13:30
@mannodermaus mannodermaus added this to the Instrumentation 1.4.0 milestone Sep 17, 2023
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.

None yet

1 participant