Skip to content

Commit

Permalink
Fix test issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stuartwdouglas committed Apr 20, 2021
1 parent 4cfaf52 commit cb4ec0d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ private void collectDependencies(ResolvedConfiguration configuration,
if ((LaunchMode.DEVELOPMENT.equals(mode) || LaunchMode.TEST.equals(mode)) &&
a.getId().getComponentIdentifier() instanceof ProjectComponentIdentifier) {
IncludedBuild includedBuild = includedBuild(project, a.getName());
if ("test-fixtures".equals(a.getClassifier())) {
if ("test-fixtures".equals(a.getClassifier()) || "test".equals(a.getClassifier())) {
//TODO: test-fixtures are broken under the new ClassLoading model
dep.addPath(a.getFile());
} else {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package io.quarkus.gradle;

import static org.assertj.core.api.Assertions.assertThat;

import java.io.File;

import org.junit.jupiter.api.Test;
Expand All @@ -11,6 +13,7 @@ public void testBasicMultiModuleBuild() throws Exception {

final File projectDir = getProjectDir("inject-bean-from-test-config");

runGradleWrapper(projectDir, "clean", ":application:test");
BuildResult build = runGradleWrapper(projectDir, "clean", ":application:test");
assertThat(build.getTasks().get(":application:test")).isEqualTo(BuildResult.SUCCESS_OUTCOME);
}
}

0 comments on commit cb4ec0d

Please sign in to comment.