Update integration specifications
This commit is contained in:
parent
c55d80b4cb
commit
d2c32b51ac
|
@ -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'
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue