When running as an escript, coverdata files are imported twice. The first time is in main/1 and the second time in generate_report/2. This causes the following ugly printout:
Importing 'cover/eunit.coverdata' data file...
Found 17 modules.
WARNING: Module xxx already imported from "/home/viktor/blabla/cover/eunit.coverdata"
Not importing again!
WARNING: Module yyy already imported from "/home/viktor/blabla/cover/eunit.coverdata"
Not importing again!
When running as an escript, coverdata files are imported twice. The first time is in main/1 and the second time in generate_report/2. This causes the following ugly printout:
(and so on, repeated for every module)