Package de.skuzzle.test.snapshots
Annotation Type ForceUpdateSnapshots
-
@Retention(RUNTIME) @Target({TYPE,METHOD}) @Deprecated @API(status=STABLE, since="1.1.0") public @interface ForceUpdateSnapshots
Deprecated.This annotation is NOT deprecated. Deprecation serves only to mark this annotation in your IDE as it should only be used temporarily.Can be temporarily placed on a test class or test method to forcefully update snapshots.When placed on a test class, snapshots in all tests within that class will be forcefully updated with latest actual result. When placed on a test method, only snapshots created within that test will be forcefully updated with latest actual test result.
This annotation replaces the
EnableSnapshotTests.forceUpdateSnapshots()flag because it is easier to use.Besides using this annotations, snapshots can also be updated globally by passing the system property
forceUpdateSnapshots(case insensitive) to the JVM.- Since:
- 1.1.0
- Author:
- Simon Taddiken
- See Also:
SnapshotDsl.ChooseAssertions.justUpdateSnapshot()- API Note:
- Warning: While this is annotation is present, all tests containing snapshot assertions will fail with an error. This is to prevent accidentally checking in disabled assertions.