Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: Fix integration tests #804

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ plugins {
id "org.jetbrains.intellij" version "1.14.1"
id 'idea'
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.6.0'
id 'jacoco'
id 'org.jetbrains.kotlin.jvm' version '1.6.0'
id 'com.adarshr.test-logger' version '3.2.0'
}

Expand Down Expand Up @@ -43,7 +43,7 @@ repositories {
url 'https://repo.eclipse.org/content/repositories/lsp4mp-releases'
}
maven {
url 'https://packages.jetbrains.team/maven/p/ij/intellij-dependencies'
url 'https://cache-redirector.jetbrains.com/intellij-dependencies'
}
}

Expand Down Expand Up @@ -103,7 +103,7 @@ sourceSets {
integrationTest {
java.srcDir file('src/it/java')
resources.srcDir file('src/it/resources')
compileClasspath += sourceSets.main.output + configurations.testRuntime
compileClasspath += sourceSets.main.output + sourceSets.test.output + configurations.testRuntimeClasspath
runtimeClasspath += output + compileClasspath
}
}
Expand All @@ -116,6 +116,13 @@ task integrationTest(type: Test) {
classpath = sourceSets.integrationTest.runtimeClasspath
outputs.upToDateWhen { false }
mustRunAfter test
testlogger {
showStandardStreams true
showPassedStandardStreams false
showSkippedStandardStreams false
showFailedStandardStreams true
showFullStackTraces true
}
}

testlogger {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public void createBuildQuarkusGradleTest() {
toolWindowPane.openGradleBuildToolPane();
GradleBuildToolPane gradleBuildToolPane = toolWindowPane.find(GradleBuildToolPane.class, Duration.ofSeconds(10));

// ISSUE #126: https://github.com/redhat-developer/intellij-common-ui-test-library/issues/126
// gradleBuildToolPane.buildProject();
gradleBuildToolPane.buildProject();
buildGradleProject(gradleBuildToolPane);

boolean isBuildSuccessful = toolWindowPane.find(BuildView.class, Duration.ofSeconds(10)).isBuildSuccessful();
Expand Down