Skip to content

//paparazzi/app.cash.paparazzi/HtmlReportWriter

HtmlReportWriter

[jvm]\ class HtmlReportWriter@JvmOverloadsconstructor(runName: String = defaultRunName(), rootDirectory: File = File(System.getProperty("paparazzi.report.dir")), snapshotRootDirectory: File = File(System.getProperty("paparazzi.snapshot.dir"))) : SnapshotHandler

Creates an HTML report that avoids writing files that have already been written.

Images and videos are named by hashes of their contents. Paparazzi won’t write two images or videos with the same contents. Note that the images/ directory includes the individual frames of each video.

Runs are named by their date.

images
  088c60580f06efa95c37fd8e754074729ee74a06.png
  93f9a81cb594280f4b3898d90dfad8c8ea969b01.png
  22d37abd0841ba2a8d0bd635954baf7cbfaa269b.png
  a4769e43cc5901ef28c0d46c46a44ea6429cbccc.png
videos
  d1cddc5da2224053f2af51f4e69a76de4e61fc41.mov
runs
  20190626002322_b9854e.js
  20190626002345_b1e882.js
index.html
index.js
paparazzi.js

Constructors

HtmlReportWriter [jvm]
@JvmOverloads
constructor(runName: String = defaultRunName(), rootDirectory: File = File(System.getProperty("paparazzi.report.dir")), snapshotRootDirectory: File = File(System.getProperty("paparazzi.snapshot.dir")))

Functions

Name Summary
close [jvm]
open override fun close()
Release all resources and block until everything has been written to the file system.
newFrameHandler [jvm]
open override fun newFrameHandler(snapshot: Snapshot, frameCount: Int, fps: Int): SnapshotHandler.FrameHandler