Skip to content

Commit 287eacb

Browse files
committed
Revert "Add unit tests for CombatBar, CombatBarManager, CombatCooldownManager, and Config classes; configure JaCoCo for test coverage"
This reverts commit 8d5ea95.
1 parent afac77c commit 287eacb

File tree

11 files changed

+1
-666
lines changed

11 files changed

+1
-666
lines changed

.github/workflows/test-and-coverage.yml

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

TESTING.md

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

build.gradle

Lines changed: 1 addition & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
plugins {
33
id 'fabric-loom' version '1.12.+'
44
id 'maven-publish'
5-
id 'jacoco'
65
}
76

87
version = project.mod_version
@@ -41,14 +40,6 @@ dependencies {
4140
// Fabric API. This is technically optional, but you probably want it anyway.
4241
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}"
4342

44-
// Testing dependencies
45-
testImplementation 'org.junit.jupiter:junit-jupiter:5.10.0'
46-
testImplementation 'org.mockito:mockito-core:5.5.0'
47-
testImplementation 'org.mockito:mockito-junit-jupiter:5.5.0'
48-
testImplementation 'org.assertj:assertj-core:3.24.2'
49-
50-
// Fabric testing
51-
testImplementation "net.fabricmc:fabric-loader-junit:${project.loader_version}"
5243
}
5344

5445
processResources {
@@ -97,56 +88,4 @@ publishing {
9788
// The repositories here will be used for publishing your artifact, not for
9889
// retrieving dependencies.
9990
}
100-
}
101-
102-
// Test configuration
103-
test {
104-
useJUnitPlatform()
105-
106-
testLogging {
107-
events "passed", "skipped", "failed"
108-
exceptionFormat "full"
109-
showStandardStreams = false
110-
}
111-
112-
finalizedBy jacocoTestReport
113-
}
114-
115-
// JaCoCo configuration
116-
jacoco {
117-
toolVersion = "0.8.10"
118-
}
119-
120-
jacocoTestReport {
121-
dependsOn test
122-
123-
reports {
124-
xml.required = true
125-
html.required = true
126-
csv.required = true
127-
128-
html.outputLocation = layout.buildDirectory.dir('reports/jacoco/html')
129-
xml.outputLocation = layout.buildDirectory.file('reports/jacoco/jacoco.xml')
130-
csv.outputLocation = layout.buildDirectory.file('reports/jacoco/jacocoTestReport.csv')
131-
}
132-
133-
afterEvaluate {
134-
classDirectories.setFrom(files(classDirectories.files.collect {
135-
fileTree(dir: it, exclude: [
136-
'**/mixin/**',
137-
'**/access/**'
138-
])
139-
}))
140-
}
141-
}
142-
143-
jacocoTestCoverageVerification {
144-
violationRules {
145-
rule {
146-
limit {
147-
minimum = 0.5
148-
}
149-
}
150-
}
151-
}
152-
91+
}

0 commit comments

Comments
 (0)