Skip to content

Latest commit

 

History

History
25 lines (15 loc) · 959 Bytes

README.md

File metadata and controls

25 lines (15 loc) · 959 Bytes

snapshot4j Build Status codecov Maven Central

A snapshot testing library for Java

Usage

    <dependency>
        <groupId>com.adamdierkens</groupId>
        <artifactId>snapshot4j</artifactId>
    </dependency>
SnapshotTest snapshotTest = new SnapshotTest(File snapshotPath);
snapshotTest.takeSnapshot(String testName, String|JsonElement testInput); // throws SnapshotTestException

// or

SnapshotTest.takeSnapshot(File snapshotPath, String testName, String|JsonElement testInput); // throws SnapshotTestException