-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.gradle
45 lines (37 loc) · 1.22 KB
/
test.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'application'
id 'jacoco'
}
dependencies {
implementation files('lib/json.jar')
implementation files('lib/symlink_javafx/javafx.base.jar')
implementation files('lib/symlink_javafx/javafx.controls.jar')
implementation files('lib/symlink_javafx/javafx.fxml.jar')
implementation files('lib/symlink_javafx/javafx.graphics.jar')
implementation files('lib/symlink_javafx/javafx.swt.jar')
implementation files('lib/symlink_javafx/javafx.media.jar')
implementation files('lib/symlink_javafx/javafx.swing.jar')
implementation files('lib/symlink_javafx/javafx.web.jar')
testImplementation files('lib/symlink_junit5/junit-platform-console-standalone-1.7.0-M1.jar')
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport // report is always generated after tests run
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
repositories {
mavenCentral()
}
group 'unsw.dungeon'
apply plugin: 'java'
sourceSets.test.java.srcDirs = ['src']
sourceSets.test.java.excludes = ['unsw/dungeon/*']
sourceSets.main.java.srcDirs = ['src']
sourceSets.main.java.excludes = ['test/*']