Created test module

This commit is contained in:
Anuken 2018-10-03 15:53:33 -04:00
parent 9a286800d6
commit f0870b3236
11 changed files with 28 additions and 3 deletions

View File

@ -105,7 +105,6 @@ project(":html") {
apply plugin: "gwt" apply plugin: "gwt"
apply plugin: "war" apply plugin: "war"
dependencies { dependencies {
compile project(":core") compile project(":core")
compileOnly project(":annotations") compileOnly project(":annotations")
@ -118,7 +117,20 @@ project(":html") {
compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion" compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion"
compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion:sources" compile "com.badlogicgames.gdx:gdx-controllers-gwt:$gdxVersion:sources"
} }
}
project(":tests"){
apply plugin: "java"
dependencies {
compile project(":core")
testImplementation('org.junit.jupiter:junit-jupiter-api:5.1.0')
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.1.0')
}
test {
useJUnitPlatform()
}
} }
project(":ios") { project(":ios") {
@ -206,7 +218,7 @@ project(":server") {
} }
} }
project(":packer") { project(":tools") {
apply plugin: "java" apply plugin: "java"
dependencies { dependencies {

View File

@ -1,4 +1,4 @@
include 'desktop', 'html', 'core', 'android', 'kryonet', 'server', 'ios', 'annotations', 'packer' include 'desktop', 'html', 'core', 'android', 'kryonet', 'server', 'ios', 'annotations', 'tools', 'tests'
if(System.properties["release"] == null || System.properties["release"].equals("false")){ if(System.properties["release"] == null || System.properties["release"].equals("false")){
if (new File(settingsDir, '../uCore').exists()) { if (new File(settingsDir, '../uCore').exists()) {

4
tests/build.gradle Normal file
View File

@ -0,0 +1,4 @@
apply plugin: "java"
sourceCompatibility = 1.8
sourceSets.main.java.srcDirs = [ "src/" ]

View File

@ -0,0 +1,9 @@
import org.junit.jupiter.api.Test;
public class Tests{
@Test
void testThings(){
}
}