I noticed when trying to run tests after installing hologram that I get the following error:
could not read file /_build/test/lib/hologram/priv/page_digest.plt": no such file or directory
I implemented a workaround that involves adding the creation of a stubbed page_digest file when using the mix test alias which does this:
def create_hologram_stub(_args) do
path = "_build/test/lib/hologram/priv"
File.mkdir_p!(path)
plt_file = Path.join(path, "page_digest.plt")
unless File.exists?(plt_file) do
File.write!(plt_file, :erlang.term_to_binary(%{}))
end
end
It solves the problem, but sure seems hacky. Is there a proper way to address this? Thanks!






















