Skip to content
Snippets Groups Projects
build.gradle 637 B
Newer Older
  • Learn to ignore specific revisions
  • LABOUREL Arnaud's avatar
    LABOUREL Arnaud committed
    plugins {
        id 'java'
        id 'application'
        id 'jacoco'
    }
    
    group 'fr.univ_amu'
    version '1.0-SNAPSHOT'
    
    repositories {
        mavenCentral()
    }
    
    dependencies {
        testImplementation 'org.junit.jupiter:junit-jupiter:5.9.2'
        testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
    
        testImplementation('org.mockito:mockito-core:5.9.0')
        testImplementation("org.assertj:assertj-core:3.25.1")
    
    LABOUREL Arnaud's avatar
    LABOUREL Arnaud committed
    }
    
    test {
        finalizedBy jacocoTestReport
    }
    
    jacocoTestReport {
        dependsOn test // tests are required to run before generating the report
        reports {
            xml.required = true
        }
    }
    
    test {
        useJUnitPlatform()
    }