Package de.skuzzle.test.snapshots
Annotation Type DeleteOrphanedSnapshots
-
@Retention(RUNTIME) @Target(TYPE) @API(status=EXPERIMENTAL, since="1.1.0") @Deprecated public @interface DeleteOrphanedSnapshots
Deprecated.This annotation is NOT deprecated. Deprecation serves only to mark this annotation in your IDE as it should only ever be used temporarily.Tagging annotation that can be temporarily placed on a snapshot test to have orphaned snapshot files automatically deleted.WARNING: This will also delete orphans that do not necessarily pertain to the currently executed test class. Use with caution especially when you are executing only parts of your test suite (snapshots pertaining to excluded tests might falsely be determined orphaned).
An orphaned snapshot file is one for which at least one of the following conditions apply:
- the test class (as stated in the snapshot's header) does not exist anymore
- the snapshot file is not located in the test class's snapshot directory
- the test method (as stated in the header) does not exist in that class anymore
- the test method is no longer a snapshot test (does not have a
SnapshotDsl.Snapshotparameter - the test method is private or static
- the test method completed successfully but did not produce the snapshot file
Besides using this annotations, orphans can also be deleted by passing the system property
deleteOrphanedSnapshots(case insensitive) to the JVM.- Since:
- 1.1.0
- Author:
- Simon Taddiken