mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-02 04:13:44 +07:00
Created test module
This commit is contained in:
parent
9a286800d6
commit
f0870b3236
16
build.gradle
16
build.gradle
@ -105,7 +105,6 @@ project(":html") {
|
||||
apply plugin: "gwt"
|
||||
apply plugin: "war"
|
||||
|
||||
|
||||
dependencies {
|
||||
compile project(":core")
|
||||
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: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") {
|
||||
@ -206,7 +218,7 @@ project(":server") {
|
||||
}
|
||||
}
|
||||
|
||||
project(":packer") {
|
||||
project(":tools") {
|
||||
apply plugin: "java"
|
||||
|
||||
dependencies {
|
||||
|
@ -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 (new File(settingsDir, '../uCore').exists()) {
|
||||
|
4
tests/build.gradle
Normal file
4
tests/build.gradle
Normal file
@ -0,0 +1,4 @@
|
||||
apply plugin: "java"
|
||||
|
||||
sourceCompatibility = 1.8
|
||||
sourceSets.main.java.srcDirs = [ "src/" ]
|
9
tests/src/test/java/Tests.java
Normal file
9
tests/src/test/java/Tests.java
Normal file
@ -0,0 +1,9 @@
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
public class Tests{
|
||||
|
||||
@Test
|
||||
void testThings(){
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user