Last active
August 21, 2019 15:41
-
-
Save ecojuntak/4623dfad6b0fac7e19d39dff0e1614ec to your computer and use it in GitHub Desktop.
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 generated by the Gradle 'init' task. | |
* | |
* This generated file contains a sample Java project to get you started. | |
* For more details take a look at the Java Quickstart chapter in the Gradle | |
* User Manual available at https://docs.gradle.org/5.5.1/userguide/tutorial_java_projects.html | |
*/ | |
plugins { | |
// Apply the java plugin to add support for Java | |
id 'java' | |
id 'jacoco' | |
id 'com.github.sherter.google-java-format' version '0.8' | |
} | |
repositories { | |
// Use jcenter for resolving dependencies. | |
// You can declare any Maven/Ivy/file repository here. | |
jcenter() | |
} | |
googleJavaFormat { | |
options style: 'AOSP' | |
} | |
dependencies { | |
// Use JUnit test framework | |
testImplementation 'junit:junit:4.12' | |
} | |
test { | |
beforeTest { descriptor -> | |
logger.lifecycle("Running test: ${descriptor}") | |
} | |
finalizedBy jacocoTestReport | |
testLogging { | |
afterSuite { desc, result -> | |
if (!desc.parent) { | |
println "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment