22plugins {
33 id ' fabric-loom' version ' 1.12.+'
44 id ' maven-publish'
5- id ' jacoco'
65}
76
87version = 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
5445processResources {
@@ -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