Skip to content

Commit

Permalink
Switch quarkusIntTest task dependency from check to test
Browse files Browse the repository at this point in the history
  • Loading branch information
glefloch committed Apr 2, 2022
1 parent 9aab340 commit 17b51b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.gradle.api.artifacts.ConfigurationContainer;
import org.gradle.api.artifacts.ProjectDependency;
import org.gradle.api.plugins.BasePlugin;
import org.gradle.api.plugins.JavaBasePlugin;
import org.gradle.api.plugins.JavaPlugin;
import org.gradle.api.plugins.JavaPluginConvention;
import org.gradle.api.tasks.SourceSet;
Expand Down Expand Up @@ -263,7 +262,7 @@ public void execute(Task test) {
tasks.register(INTEGRATION_TEST_TASK_NAME, Test.class, intTestTask -> {
intTestTask.setGroup("verification");
intTestTask.setDescription("Runs Quarkus integration tests");
intTestTask.dependsOn(quarkusBuild, tasks.named(JavaBasePlugin.CHECK_TASK_NAME));
intTestTask.dependsOn(quarkusBuild, tasks.named(JavaPlugin.TEST_TASK_NAME));
intTestTask.setClasspath(intTestSourceSet.getRuntimeClasspath());
intTestTask.setTestClassesDirs(intTestSourceSet.getOutput().getClassesDirs());
});
Expand All @@ -283,7 +282,7 @@ public void execute(Task test) {
tasks.register(TEST_NATIVE_TASK_NAME, Test.class, testNative -> {
testNative.setDescription("Runs native image tests");
testNative.setGroup("verification");
testNative.dependsOn(quarkusBuild, tasks.named(JavaBasePlugin.CHECK_TASK_NAME));
testNative.dependsOn(quarkusBuild, tasks.named(JavaPlugin.TEST_TASK_NAME));

testNative.setTestClassesDirs(project.files(nativeTestSourceSet.getOutput().getClassesDirs(),
intTestSourceSet.getOutput().getClassesDirs()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ public void shouldRunIntegrationTestAsPartOfBuild() throws Exception {
BuildResult buildResult = runGradleWrapper(projectDir, "clean", "quarkusIntTest");

assertThat(buildResult.getTasks().get(":test")).isEqualTo(BuildResult.SUCCESS_OUTCOME);
assertThat(buildResult.getTasks().get(":check")).isEqualTo(BuildResult.SUCCESS_OUTCOME);
assertThat(buildResult.getTasks().get(":quarkusIntTest")).isEqualTo(BuildResult.SUCCESS_OUTCOME);
}

Expand Down

0 comments on commit 17b51b8

Please sign in to comment.