diff --git a/pom.xml b/pom.xml index 1b043b2..fc256ab 100755 --- a/pom.xml +++ b/pom.xml @@ -26,6 +26,12 @@ approvaltests 9.5.0 + + com.larseckart + junit-tcr-extensions + 0.0.1 + test + com.google.code.gson gson diff --git a/src/test/java/org/learnwithllew/FizzBuzzTest.java b/src/test/java/org/learnwithllew/FizzBuzzTest.java index 129a851..7eedc60 100644 --- a/src/test/java/org/learnwithllew/FizzBuzzTest.java +++ b/src/test/java/org/learnwithllew/FizzBuzzTest.java @@ -1,16 +1,18 @@ package org.learnwithllew; +import com.github.larseckart.tcr.TestCommitRevertExtension; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; import org.learnwithllew.utils.Tracker; import static org.junit.jupiter.api.Assertions.assertEquals; - +@ExtendWith(TestCommitRevertExtension.class) public class FizzBuzzTest { @Test public void test() { - //Tracker.ResetAndLaunch();// Comment out after 1st run + Tracker.ResetAndLaunch();// Comment out after 1st run Tracker.TrackTestRuns(this::Check20); } private void Check20()