From 4f8008c6b005127f5c5adadb385d508b996db209 Mon Sep 17 00:00:00 2001 From: Marvin Scham Date: Tue, 6 Jun 2023 02:33:03 +0200 Subject: [PATCH 1/3] #66 Added PITest dependencies and plugin --- pom.xml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/pom.xml b/pom.xml index 0537059..d45d187 100644 --- a/pom.xml +++ b/pom.xml @@ -60,6 +60,12 @@ 2.8.0 + + org.pitest + pitest-junit5-plugin + 1.2.0 + + org.slf4j slf4j-api @@ -101,6 +107,12 @@ jacoco-maven-plugin 0.8.10 + + + org.pitest + pitest-maven + 1.14.1 + From 126613ef3c770c996cc97ec330413a73d810af2f Mon Sep 17 00:00:00 2001 From: Marvin Scham Date: Tue, 6 Jun 2023 02:33:16 +0200 Subject: [PATCH 2/3] #66 Added script for ease of use --- Script/MutationTestReport.sh | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 Script/MutationTestReport.sh diff --git a/Script/MutationTestReport.sh b/Script/MutationTestReport.sh new file mode 100644 index 0000000..beadbec --- /dev/null +++ b/Script/MutationTestReport.sh @@ -0,0 +1,2 @@ +mvn test-compile org.pitest:pitest-maven:mutationCoverage +start target/pit-reports/index.html \ No newline at end of file From 34c682b314eabbf08b67bf11f6ebc1b390a5ca8b Mon Sep 17 00:00:00 2001 From: Marvin Scham Date: Tue, 6 Jun 2023 02:38:23 +0200 Subject: [PATCH 3/3] #66 Updated changelog --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4daf9c2..d62761a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,12 +5,13 @@ ### Added - `EbayItemDataSource` (#37) +- Mutation testing capabilities via PITest (#66) - `Product` class - Mapping between Product and its corresponding DTO - Dependencies: Lombok for easier notation, JUnit 5 Params for repetitive tests - Product Validation - Product Retrieval -- Tests +- Unit Tests ### Changed