-
-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10888 from murdos/improve-approval-testing
Approval testing module improvements
- Loading branch information
Showing
4 changed files
with
92 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...in/resources/generator/server/javatool/approvaltesting/test/PackageSettings.java.mustache
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package {{packageName}}; | ||
|
||
import org.approvaltests.core.ApprovalFailureReporter; | ||
import org.approvaltests.reporters.AutoApproveWhenEmptyReporter; | ||
import org.approvaltests.reporters.DiffReporter; | ||
import org.approvaltests.reporters.FirstWorkingReporter; | ||
|
||
/** | ||
* ApprovalTests.Java configuration. | ||
* */ | ||
public class PackageSettings { | ||
private static final String ApprovalBaseDirectory = "../resources"; | ||
private static final ApprovalFailureReporter UseReporter = new FirstWorkingReporter( | ||
new AutoApproveWhenEmptyReporter(), | ||
new DiffReporter() | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters