Package-level declarations

Types

Link copied to clipboard

Configuration for the io.github.youndie.viddik.android-matrix plugin, available as viddikAndroidMatrix { }.

Link copied to clipboard
class ViddikAndroidMatrixPlugin : Plugin<Project>

The Android matrix: the module's fixtures captured on Gradle-managed emulators of several API levels, and an HTML page lining the levels up against each other.

Link copied to clipboard
abstract class ViddikDeclarationsTransform : TransformAction<TransformParameters.None>

The same snapshot for a project dependency on the test compile classpath — a sibling module's jar or class directory — for the layout where the fixtures sit in a module of their own and every component they draw comes from elsewhere (issue #53).

Link copied to clipboard
interface ViddikExtension

Configuration for the io.github.youndie.viddik plugin, available as viddik { } in a consumer's build script.

Link copied to clipboard
@DisableCachingByDefault(because = "The output is a fixed string; writing it is cheaper than looking it up in a build cache.")
abstract class ViddikGenerateAndroidMatrixTestTask : DefaultTask

Writes the JUnit 4 class the Android matrix runs on each emulator: one test for the whole commonMain registry, since a test per fixture cost an activity per fixture (see ViddikAndroidCapture).

Link copied to clipboard
@DisableCachingByDefault(because = "The output is a fixed string; writing it is cheaper than looking it up in a build cache.")
abstract class ViddikGenerateTestsTask : DefaultTask

Writes the JUnit 5 class that drives the goldens, for the viddik { showroomTargets = true } shape where the fixtures — and therefore the registry — live in commonMain.

Link copied to clipboard
@DisableCachingByDefault(because = "It copies files whose only reader is the report, and has to run after every run.")
abstract class ViddikKeepConnectedCapturesTask : DefaultTask

Keeps what a connectedAndroidDeviceTest run pulled, level by level.

Link copied to clipboard
@DisableCachingByDefault(because = "It copies files whose only reader is the report, and has to run after every run.")
abstract class ViddikKeepManagedCapturesTask : DefaultTask

Keeps what one managed device's run pulled, under the level its device reported.

Link copied to clipboard
@DisableCachingByDefault(because = "Reading the main classes is cheaper than a cache round trip, and the output is only useful in place.")
abstract class ViddikKspDeclarationsTask : DefaultTask

Copies the main compilation's output with everything but the declarations taken out, for the test source set's KSP run to read instead of the real classes.

Link copied to clipboard
class ViddikPlugin : Plugin<Project>

Wires viddik screenshot testing into a module.

Link copied to clipboard
@DisableCachingByDefault(because = "It changes the state of a device.")
abstract class ViddikPrepareConnectedEmulatorsTask @Inject constructor(exec: ExecOperations) : DefaultTask

Gets an emulator ready for a connected run to pull captures from it.

Link copied to clipboard
@DisableCachingByDefault(because = "Recording writes goldens into the source tree as an undeclared output.")
abstract class ViddikRecordTask : ViddikScreenshotTask

The recording task, which has one more switch than a verification does.

Link copied to clipboard
@DisableCachingByDefault(because = "The same type serves recording, which writes goldens into the source tree as an undeclared output — a cache hit would skip producing the very files the run exists to produce.")
abstract class ViddikScreenshotTask : Test

A Test task that can be pointed at a single screenshot.