Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "featue: minimum support for lcov" #262

Merged
merged 1 commit into from
Jul 18, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ end
- [[mix coveralls.html] Show coverage as HTML report](#mix-coverallshtml-show-coverage-as-html-report)
- [[mix coveralls.json] Show coverage as JSON report](#mix-coverallsjson-show-coverage-as-json-report)
- [[mix coveralls.xml] Show coverage as XML report](#mix-coverallsxml-show-coverage-as-xml-report)
- [[mix coveralls.lcov] Show coverage as lcov report (Experimental)](#mix-coverallslcov-show-coverage-as-lcov-report)
- [coveralls.json](#coverallsjson)
- [Stop Words](#stop-words)
- [Exclude Files](#exclude-files)
Expand Down Expand Up @@ -358,13 +357,6 @@ Output to the shell is the same as running the command `mix coveralls` (to suppr

Output reports are written to `cover/excoveralls.xml` by default, however, the path can be specified by overwriting the `"output_dir"` coverage option.

### [mix coveralls.lcov] Show coverage as lcov report (Experimental)
This task displays coverage information at the line level formatted as a lcov.
The report follows a format supported by several code coverage services like VSCode extension(`ryanluker.vscode-coverage-gutters`).
Output to the shell is the same as running the command `mix coveralls` (to suppress this output, add `"print_summary": false` to your project's `coveralls.json` file). In a similar manner to `mix coveralls.detail`, reported source code can be filtered by specifying arguments using the `--filter` flag.

Output reports are written to `cover/lcov.info` by default, however, the path can be specified by overwriting the `"output_dir"` coverage option.

## coveralls.json
`coveralls.json` provides settings for excoveralls.

Expand Down
6 changes: 0 additions & 6 deletions lib/excoveralls.ex
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ defmodule ExCoveralls do
alias ExCoveralls.Json
alias ExCoveralls.Post
alias ExCoveralls.Xml
alias ExCoveralls.Lcov

@type_travis "travis"
@type_github "github"
Expand All @@ -31,7 +30,6 @@ defmodule ExCoveralls do
@type_json "json"
@type_post "post"
@type_xml "xml"
@type_lcov "lcov"

@doc """
This method will be called from mix to trigger coverage analysis.
Expand Down Expand Up @@ -101,10 +99,6 @@ defmodule ExCoveralls do
Json.execute(stats, options)
end

def analyze(stats, @type_lcov, options) do
Lcov.execute(stats, options)
end

def analyze(stats, @type_xml, options) do
Xml.execute(stats, options)
end
Expand Down
73 changes: 0 additions & 73 deletions lib/excoveralls/lcov.ex

This file was deleted.

15 changes: 0 additions & 15 deletions lib/mix/tasks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -170,21 +170,6 @@ defmodule Mix.Tasks.Coveralls do
end
end

defmodule Lcov do
@moduledoc """
Provides an entry point for outputting coveralls information
as a Lcov file.
"""
use Mix.Task

@shortdoc "Output the test coverage as a Lcov file"
@preferred_cli_env :test

def run(args) do
Mix.Tasks.Coveralls.do_run(args, [ type: "lcov" ])
end
end

defmodule Travis do
@moduledoc """
Provides an entry point for travis's script.
Expand Down
67 changes: 0 additions & 67 deletions test/lcov_test.exs

This file was deleted.