anchor.diff:      || Mod <- cover:modules()],
     % generating .coverdata, just in case
     cover:export(filename:join([BaseDir, "test_coverage", "merged.coverdata"])),
  -io:format("Ping~n"),
  +
     % generating coverage stats for each module
     % [{module, {covered, noncovered}}]
     RawCoverage = [cover:analyse(Mod, module) || Mod <- cover:modules()],
  
positive.code:     {error, eexist} -> file:del_dir(CoverDirPath),
        file:make_dir(CoverDirPath)
    end,
  io:format("Ping~n"),
    % generating reports for single modules
    [cover:analyze_to_file(
        Mod,
  
negative.code:   AllModules = [get_modules_list(filename:join([BaseDir, X]), ".beam") || X <- EbinDirs],
    {_, CtModules} = get_modules_list(filename:join([BaseDir, "test_distributed"]), ".erl"),
    OmittedModules = CtModules ++ ExcludedModules,
  
    % loading .beam files for cover server
    cover:start(),
    [[cover:compile_beam(filename:join([Ebin, M]))
        || M <- Modules, not lists:member(M, OmittedModules)]
      || {Ebin, Modules} <- AllModules],
  
    % getting directory name in which coverage reports from CT are
    {ok, LS} = file:list_dir(filename:join([BaseDir, "test_distributed", "logs"])),
    CT_dir = hd(lists:filter(
      fun(X) -> lists:prefix("ct_run", X) end,
      LS)),
    % loading coverage reports
    ok = cover:import(filename:join([BaseDir, "test_distributed", "logs", CT_dir, "all.coverdata"])),
    ok = cover:import(filename:join([BaseDir, ".eunit", "eunit.coverdata"])),
  
    % output directory; if exists, we re-create it
    CoverDirPath = filename:join([BaseDir, "test_coverage"]),
    case file:make_dir(CoverDirPath) of
  