Coverex - Coverage Reports for Elixir v1.5.0 Coverex.Task View Source

Link to this section Summary

Link to this section Types

Link to this type fun_cover() View Source
fun_cover() :: [{mfa, {integer, integer}}]
Link to this type mod_cover() View Source
mod_cover() :: [{String.t, {integer, integer}}]

Link to this section Functions

Link to this function coverage_data(all_modules) View Source
coverage_data([atom]) :: {mod_cover, fun_cover}

Returns detailed coverage data {mod, mf} for all modules from the :cover application. The special functions __info__ and __struct__ are filtered out of the list of covered functions.

The mod data

The mod data is a list of pairs: {modulename, {no of covered lines, no of uncovered lines}}

The mf data

The mf data is list of pairs: {{m, f, a}, {no of covered lines, no of uncovered lines}}

Link to this function encode_html(s, acc \\ "") View Source
Link to this function filter_modules(all_modules, ignore_list) View Source
Link to this function overview_entry_template(entry, cov, uncov, ratio) View Source
Link to this function overview_entry_text_template(entry, cov, uncov, ratio) View Source
Link to this function overview_template(title, entries, total) View Source
Link to this function overview_text_template(entries, total) View Source
Link to this function post_coveralls(mods, output, job_id, url \\ "https://coveralls.io/api/v1/jobs") View Source
post_coveralls([atom], String.t, String.t, String.t) :: :ok
Link to this function post_to_coveralls?(opts) View Source

is post to coveralls requested?

Link to this function puts_module_overview(modules_summary, total) View Source
Link to this function running_travis?(env \\ System.get_env()) View Source
running_travis?(%{optional(String.t) => String.t}) :: boolean
Link to this function send_http(url, filename, body) View Source
Link to this function source_line_template(number, count, source, anchor) View Source
Link to this function source_template(title, lines) View Source
Link to this function start(compile_path, opts) View Source

Starts the Coverex coverage data generation. An additional option is

log: :error

which sets the log-level of the Elixir Logger application. Default value is :error. For debugging purposes, it can be set to :debug. In this case, the output is quite noisy…

Link to this function travis_job_id(env \\ System.get_env()) View Source
travis_job_id(%{optional(String.t) => String.t}) :: String.t

gets the travis job id out of the environment

Link to this function write_function_overview(functions, output) View Source
Link to this function write_html_file(mod, output) View Source
Link to this function write_module_overview(modules, total, output) View Source