Skip to content

Commit 1f1636e

Browse files
committed
added test-infrastructure to the gradle build file.
1 parent 0c038fc commit 1f1636e

File tree

3 files changed

+44
-321
lines changed

3 files changed

+44
-321
lines changed

build.gradle

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,46 @@
1+
buildscript {
2+
repositories {
3+
mavenCentral()
4+
}
5+
dependencies {
6+
classpath 'org.junit.platform:junit-platform-gradle-plugin:1.0.0-RC2'
7+
}
8+
}
9+
110
apply plugin: 'java'
211
apply plugin: 'maven'
12+
apply plugin: 'idea'
13+
apply plugin: 'org.junit.platform.gradle.plugin'
314

415
group = 'com.spaceshift'
516
version = '0.9.11'
617

718
sourceCompatibility = 1.8
819
targetCompatibility = 1.8
920

21+
compileTestJava {
22+
sourceCompatibility = 1.8
23+
targetCompatibility = 1.8
24+
options.compilerArgs += '-parameters'
25+
}
26+
1027
ext.jmeVersion = "3.2_branch-SNAPSHOT"
1128
ext.jme3_xbuf_version = '0.9.1'
1229
ext.lwjglVersion = "3.1.2"
30+
ext.junitPlatformVersion = "1.0.0-M5"
31+
ext.junitJupiterVersion = "5.0.0-M5"
32+
ext.log4jVersion = '2.6.2'
33+
34+
junitPlatform {
35+
filters {
36+
engines {
37+
}
38+
tags {
39+
}
40+
}
41+
logManager 'org.apache.logging.log4j.jul.LogManager'
42+
}
43+
1344

1445
repositories {
1546
mavenCentral()
@@ -105,6 +136,19 @@ dependencies {
105136

106137
// https://mvnrepository.com/artifact/org.codehaus.groovy/groovy-all
107138
compile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.5.0-beta-1'
139+
140+
// TESTS
141+
testCompile "org.junit.platform:junit-platform-commons:$junitPlatformVersion"
142+
testRuntime "org.junit.platform:junit-platform-engine:$junitPlatformVersion"
143+
144+
testCompile "org.junit.jupiter:junit-jupiter-api:$junitJupiterVersion"
145+
testRuntime "org.junit.jupiter:junit-jupiter-engine:$junitJupiterVersion"
146+
147+
testRuntime "org.apache.logging.log4j:log4j-core:$log4jVersion"
148+
testRuntime "org.apache.logging.log4j:log4j-jul:$log4jVersion"
149+
150+
// Only needed to run tests in an (IntelliJ) IDE(A) that bundles an older version
151+
testCompile "org.junit.platform:junit-platform-launcher:$junitPlatformVersion"
108152
}
109153

110154
task copyToLib(type: Copy) {

src/test/java/com/ss/editor/test/LinkedAssetTest.java

Lines changed: 0 additions & 278 deletions
This file was deleted.

src/test/java/com/ss/editor/test/TestChooser.java

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)