skuzzle / snapshot-tests

Convenient snapshot testing for Java
https://skuzzle.github.io/snapshot-tests/reference/latest/
MIT License
12 stars 0 forks source link

Streamline public API #68

Open skuzzle opened 1 year ago

skuzzle commented 1 year ago

Currently we provide a wild mix of possibilities to configure and fine tune the behavior of the snapshot test engine

Having stuff configured via annotations has the advantage that those information are static and its easier to use them for orphan detection (especially regarding the snapshot directory). Also it allows to easily share the configuration for all tests within the same class, which makes each test clearer and less cluttered.

On the other hand, those many annotations and their inconsistent semantics make the framework more complicated and the public API less discoverable. The DSL as single entry point to all the functionality is pretty appealing in that regards.