I'm working on a small escript app that converts ebook formats (.pdf
, .epub
) into the .mobi
format for use on a Kindle, and I'm wondering how (using ExUnit) I can test that a conversion was successful without actually running the code on a real file and producing the new converted file.
For now the script just loops through the contents of a directory and converts the appropriate files into .mobi
by invoking the Calibre package, although later on I would like to do the conversions myself.