-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from jottinger/master
Includes gradle upgrade, tests
- Loading branch information
Showing
17 changed files
with
183 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
language: java | ||
jdk: | ||
- oraclejdk8 | ||
- openjdk17 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
plugins { | ||
`java-library` | ||
jacoco | ||
} | ||
|
||
java { | ||
toolchain { | ||
languageVersion.set(JavaLanguageVersion.of(17)) | ||
} | ||
} | ||
|
||
group = "com.github.erdos-graph-framework" | ||
version = "1.0-SNAPSHOT" | ||
|
||
repositories { | ||
mavenLocal() | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.1.0") | ||
testImplementation("org.junit.jupiter:junit-jupiter-params:5.1.0") | ||
|
||
} | ||
|
||
jacoco { | ||
toolVersion = "0.8.9" | ||
reportsDirectory.set(layout.buildDirectory.dir("customJacocoReportDir")) | ||
} | ||
|
||
tasks.test { | ||
useJUnitPlatform() | ||
finalizedBy(tasks.jacocoTestReport) // report is always generated after tests run | ||
} | ||
tasks.jacocoTestReport { | ||
dependsOn(tasks.test) // tests are required to run before generating the report | ||
finalizedBy(tasks.jacocoTestCoverageVerification) | ||
} | ||
|
||
tasks.jacocoTestCoverageVerification { | ||
violationRules { | ||
rule { | ||
limit { | ||
counter = "INSTRUCTION" | ||
minimum = "0.80".toBigDecimal() | ||
} | ||
limit { | ||
counter = "BRANCH" | ||
minimum = "0.80".toBigDecimal() | ||
} | ||
limit { | ||
counter = "LINE" | ||
minimum = "0.80".toBigDecimal() | ||
} | ||
limit { | ||
counter = "CLASS" | ||
minimum = "0.90".toBigDecimal() | ||
} | ||
limit { | ||
counter = "COMPLEXITY" | ||
maximum = "0.30".toBigDecimal() | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
// known issue: case sensitivity for IDEA | ||
rootProject.name = "Erdos" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,16 @@ | ||
package com.hendrix.test; | ||
|
||
import org.junit.After; | ||
import org.junit.Before; | ||
import org.junit.Test; | ||
|
||
import java.util.concurrent.ThreadPoolExecutor; | ||
|
||
import static org.junit.Assert.*; | ||
import static org.junit.jupiter.api.Assertions.*; | ||
import org.junit.jupiter.api.Test; | ||
|
||
/** | ||
* Created by tshalev on 09/02/2017. | ||
*/ | ||
public class GraphTestsTest { | ||
@Before | ||
public void setUp() throws Exception { | ||
|
||
} | ||
|
||
@After | ||
public void tearDown() throws Exception { | ||
|
||
} | ||
|
||
@Test | ||
public void testHello() { | ||
|
||
assert (true); | ||
assertTrue(true); | ||
} | ||
|
||
} | ||
} |
Oops, something went wrong.