Skip to content
Snippets Groups Projects
Commit 2b7fc651 authored by Carl Jones's avatar Carl Jones
Browse files

test pitest on CI

parent 40867a2c
No related branches found
No related tags found
No related merge requests found
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="CompilerConfiguration"> <component name="CompilerConfiguration">
<annotationProcessing>
<profile default="true" name="Default" enabled="true" />
</annotationProcessing>
<bytecodeTargetLevel target="17" /> <bytecodeTargetLevel target="17" />
</component> </component>
</project> </project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<module version="4"> <module version="4">
<component name="CheckStyle-IDEA-Module" serialisationVersion="2">
<option name="activeLocationsIds" />
</component>
<component name="NewModuleRootManager" inherit-compiler-output="true"> <component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output /> <exclude-output />
<orderEntry type="sourceFolder" forTests="false" /> <orderEntry type="sourceFolder" forTests="false" />
......
...@@ -15,6 +15,7 @@ group 'com.nsa.cm6123-6623' ...@@ -15,6 +15,7 @@ group 'com.nsa.cm6123-6623'
version '1.0-SNAPSHOT' version '1.0-SNAPSHOT'
sourceCompatibility = 17 sourceCompatibility = 17
targetCompatibility = 17
repositories { repositories {
mavenCentral() mavenCentral()
...@@ -22,15 +23,15 @@ repositories { ...@@ -22,15 +23,15 @@ repositories {
dependencies { dependencies {
implementation 'org.apache.logging.log4j:log4j-api:2.17.1' implementation 'org.apache.logging.log4j:log4j-api:2.20.0'
implementation 'org.apache.logging.log4j:log4j-core:2.17.1' implementation 'org.apache.logging.log4j:log4j-core:2.20.0'
implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.17.1' implementation 'org.apache.logging.log4j:log4j-slf4j-impl:2.20.0'
testImplementation(platform('org.junit:junit-bom:5.7.0')) testImplementation(platform('org.junit:junit-bom:5.9.2'))
testImplementation('org.junit.jupiter:junit-jupiter:5.8.2') testImplementation('org.junit.jupiter:junit-jupiter:5.9.2')
testImplementation('org.mockito:mockito-core:4.1.0') testImplementation('org.mockito:mockito-core:5.2.0')
testImplementation("org.junit.jupiter:junit-jupiter-params:5.8.2") testImplementation("org.junit.jupiter:junit-jupiter-params:5.9.2")
} }
...@@ -78,9 +79,11 @@ checkstyleMain { ...@@ -78,9 +79,11 @@ checkstyleMain {
jacocoTestReport { jacocoTestReport {
reports { reports {
xml.enabled false xml.required = false
csv.enabled false csv.required = false
html.destination file("${buildDir}/jacocoHtml") html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
//html.destination file("${buildDir}/jacocoHtml")
} }
} }
jacocoTestCoverageVerification { jacocoTestCoverageVerification {
...@@ -110,12 +113,12 @@ rootProject.tasks.named("jar") { ...@@ -110,12 +113,12 @@ rootProject.tasks.named("jar") {
} }
pitest { pitest {
targetClasses = ['com.cm6123.monopoly.game.*'] //by default "${project.group}.*" targetClasses = ['com.cm6123.monopoly.*'] //by default "${project.group}.*"
//pitestVersion = '1.9.0' //not needed when a default PIT version should be used pitestVersion = '1.14.2' //not needed when a default PIT version should be used
threads = 4 threads = 4
outputFormats = ['XML', 'HTML'] outputFormats = ['XML', 'HTML']
timestampedReports = false timestampedReports = false
junit5PluginVersion = '1.0.0' junit5PluginVersion = '1.2.0'
reportAggregator { reportAggregator {
testStrengthThreshold.set(50) testStrengthThreshold.set(50)
......
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-8.2-bin.zip
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists zipStorePath=wrapper/dists
...@@ -3,4 +3,4 @@ ...@@ -3,4 +3,4 @@
* This is the package root that should be subjected to automated testing. * This is the package root that should be subjected to automated testing.
* It should not have any user interface code in it. * It should not have any user interface code in it.
*/ */
package com.cm6123.monopoly.game; package com.cm6123.monopoly.game;
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment