-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.gradle
48 lines (40 loc) · 1.53 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
46
47
48
buildscript {
repositories {
mavenCentral()
}
}
plugins {
id 'application'
id 'jacoco'
}
dependencies {
implementation files('lib/json.jar')
implementation files('lib/javatuples-1.2.jar')
implementation files('lib/LibFX-0.3.0.jar')
implementation files('/import/ravel/3/cs2511/javafx-sdk-11.0.2/lib/javafx.base.jar')
implementation files('/import/ravel/3/cs2511/javafx-sdk-11.0.2/lib/javafx.controls.jar')
implementation files('/import/ravel/3/cs2511/javafx-sdk-11.0.2/lib/javafx.fxml.jar')
implementation files('/import/ravel/3/cs2511/javafx-sdk-11.0.2/lib/javafx.graphics.jar')
implementation files('/import/ravel/3/cs2511/javafx-sdk-11.0.2/lib/javafx.swt.jar')
implementation files('/import/ravel/3/cs2511/javafx-sdk-11.0.2/lib/javafx.media.jar')
implementation files('/import/ravel/3/cs2511/javafx-sdk-11.0.2/lib/javafx.swing.jar')
implementation files('/import/ravel/3/cs2511/javafx-sdk-11.0.2/lib/javafx.web.jar')
testImplementation files('lib/junit-platform-console-standalone-1.7.0-M1.jar')
}
test {
useJUnitPlatform()
finalizedBy jacocoTestReport // report is always generated after tests run
ignoreFailures = true
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
}
repositories {
mavenCentral()
}
group 'unsw.loopmania'
apply plugin: 'java'
sourceSets.test.java.srcDirs = ['src']
sourceSets.test.java.excludes = ['unsw/loopmania/*']
sourceSets.main.java.srcDirs = ['src']
sourceSets.main.java.excludes = ['test/*']