Skip to content

Inject classpath into test + use individual test projects#148

Open
abhinayagarwal wants to merge 2 commits into
openjfx:masterfrom
abhinayagarwal:plugin-test
Open

Inject classpath into test + use individual test projects#148
abhinayagarwal wants to merge 2 commits into
openjfx:masterfrom
abhinayagarwal:plugin-test

Conversation

@abhinayagarwal

Copy link
Copy Markdown
Collaborator

We no longer have to depend on a snapshot build of the plugin to run the tests. Instead the plugin is build and its entire classpath in injected into the test.

Fixes #147

Comment thread test-project/modular/build.gradle
assertEquals(TaskOutcome.SUCCESS, result.task(":run").getOutcome(), "Failed build!");
}

private List<File> pluginClasspath() {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You are reading it three times, while it could probably be done in one previous setup single step?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

fixed

@sschuberth

Copy link
Copy Markdown

This PR has conflicts now that #151 was merged.

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.

Tests needs the snapshot/release version of the plugin to run

4 participants