ExSnappy (ExSnappy v0.1.0)

View Source

ExSnappy is a library for taking snapshots of HTML using the Go Snappy service.

Summary

Functions

Takes a snapshot of the given HTML and sends it to the Go Snappy service.

Takes a snapshot of the given HTML with the specified name

Takes a snapshot of the given HTML with the specified name and options.

Functions

snap(html)

(macro)

Takes a snapshot of the given HTML and sends it to the Go Snappy service.

Uses the name of the test function as the snapshot name.

snap(name, html)

(macro)

Takes a snapshot of the given HTML with the specified name

Uses the name of the test function as the snapshot name plus a suffix. Use if you need to run multiple snapshots in the same test function.

snap(name, html, options)

(macro)

Takes a snapshot of the given HTML with the specified name and options.

Uses the name of the test function as the snapshot name plus a suffix. Use if you need to run multiple snapshots in the same test function.

Options are passed to the Go Snappy service to control the rendered screenshots.