Update integration specifications

This commit is contained in:
Schalk Cronje 2021-02-07 21:06:49 +01:00
parent c55d80b4cb
commit d2c32b51ac
2 changed files with 6 additions and 1 deletions

View File

@ -26,6 +26,7 @@ package com.github.jrubygradle.jar
import com.github.jrubygradle.jar.helpers.IntegrationSpecification
import org.gradle.testkit.runner.BuildResult
import org.gradle.testkit.runner.TaskOutcome
import spock.lang.Ignore
import spock.lang.IgnoreIf
import spock.lang.Issue
@ -34,6 +35,7 @@ import java.util.zip.ZipFile
import static com.github.jrubygradle.jar.JRubyJar.DEFAULT_MAIN_CLASS
@Ignore
class JRubyJarTestKitSpec extends IntegrationSpecification {
public static final String DEFAULT_TASK_NAME = 'jrubyJar'

View File

@ -31,6 +31,7 @@ import spock.lang.Specification
class IntegrationSpecification extends Specification {
static final boolean OFFLINE = System.getProperty('TESTS_ARE_OFFLINE')
static final File PARENT_TEST_FOLDER = new File(System.getProperty('TEST_TEMP_FOLDER','./build/tmp/integrationTests'))
@Shared
Map testProperties
@ -40,13 +41,14 @@ class IntegrationSpecification extends Specification {
File mavenRepoLocation
@Rule
TemporaryFolder testFolder
TemporaryFolder testFolder = new TemporaryFolder(PARENT_TEST_FOLDER)
File projectDir
File buildFile
File settingsFile
void setupSpec() {
PARENT_TEST_FOLDER.mkdirs()
testProperties = loadTestProperties()
flatRepoLocation = new File(testProperties.flatrepo)
mavenRepoLocation = new File(testProperties.mavenrepo)
@ -66,6 +68,7 @@ class IntegrationSpecification extends Specification {
.withDebug(true)
.withArguments(args)
.withPluginClasspath()
.withTestKitDir(PARENT_TEST_FOLDER)
.forwardOutput()
}