LiveLoad.Reporter.HTML (LiveLoad v0.0.1-rc.58)

Copy Markdown View Source

LiveLoad.Reporter.HTML provides a self-contained HTML report that embeds a set of LiveLoad.Result structs from a load test.

The HTML template is prebuilt as a single file and the JSON encoded data is stored in the page. Due to how LiveLoad.Result is built and encoded, this may generate a very large file. The code that builds the template can be found in the react-reporter directory in the LiveLoad repository.

The reporter returns an binary/0 which can be served by a server, written to a file, transmitted somewhere else, etc.

Summary

Functions

Render an HTML report from the result of LiveLoad.run/1.

Functions

render!(results)

@spec render!(
  results :: %{required(LiveLoad.Scenario.t()) => LiveLoad.scenario_result()}
) :: binary()

Render an HTML report from the result of LiveLoad.run/1.

Returns a binary/0 which can then be used to write to a file, served over a web server, etc.