Skip to content

Commit 4286a14

Browse files
authored
Merge pull request #39 from PragTob/load-specs
Load applications to have access to versions
2 parents 0fcdd6b + 8342060 commit 4286a14

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

lib/benchee/formatters/html.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,15 @@ defmodule Benchee.Formatters.HTML do
107107
|> Map.put_new(:auto_open, @default_auto_open)
108108
|> Map.put_new(:inline_assets, @default_inline_assets)
109109
updated_configuration = %Configuration{suite.configuration | formatter_options: %{html: opts}}
110+
load_specs_for_versions()
110111
%Suite{suite | configuration: updated_configuration}
111112
end
112113

114+
defp load_specs_for_versions do
115+
_ = Application.load :benchee
116+
_ = Application.load :benchee_html
117+
end
118+
113119
defp do_format(%Suite{scenarios: scenarios, system: system,
114120
configuration: %{
115121
formatter_options: %{html: options = %{file: filename, inline_assets: inline_assets}},

0 commit comments

Comments
 (0)