A sample project that automatically generates screenshot tests by utilizing the detection of the @Preview annotation through the use of three libraries below.
Showkase for detect @Preview
annotation
Paparazzi for screenshot testing
TestParameterInjector for inject test parameter
./gradlew recordPaparazziDebug
./gradlew verifyPaparazziDebug