ExIntegrationCoveralls.CoverageCiPoster (ExIntegrationCoveralls v0.9.0)

Handler for posting coverage data to Internal CI Service.

Link to this section Summary

Link to this section Functions

Link to this function

get_coverage_stats(compile_time_source_lib_abs_path, source_code_abs_path)

Get coverage stats.

return

Return

A map array.

examples

Examples

[{"lib/hello.ex", [ nil, 0, nil, 0, nil, 1]}, ...]
Link to this function

post_stats_to_cover_ci(url, extends_post_params, compile_time_source_lib_abs_path \\ File.cwd!(), source_code_abs_path \\ File.cwd!())

Post stats to coverage CI.

parameters

Parameters

  • url: CI receive stats address
  • extends_post_params: use to transform stats which CI service can acceptable form
  • compile_time_source_lib_abs_path: source code project abs path in compile-time machine.
  • source_lib_absolute_path: source code project abs path in run-time machine.
Link to this function

stats_transformer(stats, extends \\ %{})

Transform stats to CI acceptable form.

parameters

Parameters

  • stats: get_coverage_stats() return value