Skip to content

Use the deliverable artifact in the plugin.path during testing #191

Closed
@orpiske

Description

@orpiske

The plugin.path configured in the connect runtime uses either the path of the packaged jar or the compiled classes.

There is one circumstance where this is less than ideal: when the jar file is used to determine the path, the compiled class files will also be present. Therefore, the behavior is not entirely deterministic and could lead to subtle bugs during test execution (in case there are circumstances modifying how the connect runtime determines what to load).

Some possible solutions:

  • remove the compiled classes prior to the verify target
  • copy the jar file to a different/temporary location and use that in the plugin path
  • extract the package to a temporary location prior to the test, and use its location in the plugin path (also adjusting the test dependencies to provided scope).

Metadata

Metadata

Assignees

Labels

testingIssues related to tests and testing in general

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions