mannodermaus / android-junit5

Testing with JUnit 5 for Android.
Apache License 2.0
859 stars 52 forks source link

Usage of ComposeExtension flags a false-positive warning in newer IDEs #318

Closed mannodermaus closed 5 months ago

mannodermaus commented 5 months ago
Screenshot 2024-04-02 at 12 09 52

The underlying issue is that, while createComposeExtension() always returns an AndroidComposeExtension that properly implements several JUnit 5 extension points, its method signature returns the super interface ComposeExtension, which does not. Therefore, newer IDEs flag usages like the above with an annoying warning.

mannodermaus commented 5 months ago

Scheduled for release in instrumentation library 1.4.1