Back to Intellij Community

PublicTestExtensionFunction

plugins/devkit/intellij.kotlin.devkit/resources/inspectionDescriptions/PublicTestExtensionFunction.html

2025.3-rc-2577 B
Original Source

Reports public extension functions on Driver/Finder/IdeaFrameUI in test classes within the intellij.driver.tests module.

Public extension functions in the intellij.driver.tests module create maintainability issues because they:

  • Become visible to all tests across all contexts
  • Can lead to unclear test dependencies and harder maintenance

Recommended solutions:

  • Move the function to a private companion object
  • Relocate to an appropriate page object:
    • Generic page object for widely applicable functions
    • Specific page object for context-dependent functions