From 2212418472af269a6e36842f5cf1e0c265696af1 Mon Sep 17 00:00:00 2001 From: hayesall Date: Sat, 4 Jun 2022 10:30:54 -0400 Subject: [PATCH 1/3] =?UTF-8?q?=E2=9C=85=20Add=20`src/test/java`=20directo?= =?UTF-8?q?ry=20with=20`junit`=20build?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../edu/wisc/cs/will/RunBoostedModelsTest.java | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/test/java/edu/wisc/cs/will/RunBoostedModelsTest.java diff --git a/src/test/java/edu/wisc/cs/will/RunBoostedModelsTest.java b/src/test/java/edu/wisc/cs/will/RunBoostedModelsTest.java new file mode 100644 index 0000000..3e1bc33 --- /dev/null +++ b/src/test/java/edu/wisc/cs/will/RunBoostedModelsTest.java @@ -0,0 +1,15 @@ +package edu.wisc.cs.will; + +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.assertEquals; + + +public class RunBoostedModelsTest +{ + @Test + public void testFoo() + { + int bar = 1; + assertEquals(bar, 1); + } +} \ No newline at end of file From f9661cad6f25069d967a6745713d8fae3795cc4d Mon Sep 17 00:00:00 2001 From: hayesall Date: Sat, 4 Jun 2022 10:32:39 -0400 Subject: [PATCH 2/3] =?UTF-8?q?=E2=9E=95=20Add=20`jacoco`=20dependency=20i?= =?UTF-8?q?n=20`build.gradle`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 1 + 1 file changed, 1 insertion(+) diff --git a/build.gradle b/build.gradle index a927031..84c8027 100644 --- a/build.gradle +++ b/build.gradle @@ -4,6 +4,7 @@ plugins { id 'java' + id 'jacoco' id 'maven-publish' } From 2a57b0591611342d0bc2226a37c37b3a07aeec60 Mon Sep 17 00:00:00 2001 From: hayesall Date: Sat, 4 Jun 2022 10:33:35 -0400 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=94=A7=20Add=20test=20+=20coverage=20?= =?UTF-8?q?configuration=20to=20`build.gradle`?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build.gradle | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index 84c8027..d841805 100644 --- a/build.gradle +++ b/build.gradle @@ -10,13 +10,22 @@ plugins { repositories { mavenLocal() - maven { - url = uri('https://repo.maven.apache.org/maven2/') - } + mavenCentral() } dependencies { - testImplementation 'junit:junit:4.13.1' + implementation 'org.junit.jupiter:junit-jupiter:5.7.0' + testImplementation 'org.junit.jupiter:junit-jupiter-api:5.8.1' + testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.8.1' +} + +test { + useJUnitPlatform() + finalizedBy jacocoTestReport +} + +jacocoTestReport { + dependsOn test } group = 'edu.wisc.cs.will'