Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found
Select Git revision
  • main
1 result

Target

Select target project
  • z20026252/M1-INFO-FSI-TP-template
  • alaboure/M1-INFO-FSI-TP-template
  • d23022755/M1-INFO-FSI-TP-template
  • m19025211/m-1-info-fsi-tp-template-mededji
  • b24026857/tp-1-fl
  • a24025370/M1-INFO-FSI-TP-template
6 results
Select Git revision
Loading items
Show changes
Showing
with 93 additions and 44 deletions
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.assertj:assertj-core:3.24.2")
}
test {
finalizedBy jacocoTestReport
}
jacocoTestReport {
dependsOn test // tests are required to run before generating the report
reports {
xml.required = true
}
}
test {
useJUnitPlatform()
}
plugins {
id("java")
id("jacoco")
}
repositories {
mavenCentral()
}
dependencies {
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation("org.assertj:assertj-core:3.27.0")
testImplementation("org.mockito:mockito-core:5.15.2")
}
tasks.test {
finalizedBy("jacocoTestReport")
}
tasks.jacocoTestReport {
dependsOn("test")
reports {
xml.required = true
html.outputLocation = layout.buildDirectory.dir("jacocoHtml")
}
}
tasks.test {
useJUnitPlatform()
}
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
rootProject.name = 'tp_2_unit_test_and_coverage'
rootProject.name = 'tp_2_mocking'
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
### IntelliJ IDEA ###
.idea
### VS Code ###
.vscode/
### Mac OS ###
.DS_Store
\ No newline at end of file
# TP 1 : tests boîte noire
Les exécutables à tester sont dans le répertoire `executables`.
Les fichiers images correspondant au cas de test sont à mettre dans le répertoire `ìmages`.
Pour lancer les tests, il suffit d'utiliser la commande :
```bash
gradle run
```
plugins {
id 'java'
id 'application'
id("java")
id("application")
}
group = 'org.example'
version = '1.0-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
testImplementation("org.junit.jupiter:junit-jupiter-api:5.11.4")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine:5.11.4")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
testImplementation("org.assertj:assertj-core:3.27.0")
}
test {
tasks.test {
useJUnitPlatform()
}
......
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved
File moved