Skip to content

Commit

Permalink
t add TCR
Browse files Browse the repository at this point in the history
Co-Authored-By: Lars Eckart <[email protected]>
  • Loading branch information
isidore and LarsEckart committed Feb 27, 2023
1 parent 067b77a commit f21856d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@
<artifactId>approvaltests</artifactId>
<version>9.5.0</version>
</dependency>
<dependency>
<groupId>com.larseckart</groupId>
<artifactId>junit-tcr-extensions</artifactId>
<version>0.0.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.google.code.gson</groupId>
<artifactId>gson</artifactId>
Expand Down
6 changes: 4 additions & 2 deletions src/test/java/org/learnwithllew/FizzBuzzTest.java
Original file line number Diff line number Diff line change
@@ -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()
Expand Down

0 comments on commit f21856d

Please sign in to comment.