parroty / excoveralls

Coverage report tool for Elixir with coveralls.io integration.
MIT License
823 stars 179 forks source link

Files to ignore on a Phoenix project #89

Open Ch4s3 opened 7 years ago

Ch4s3 commented 7 years ago

I'm trying to figure out which files should be ignored that are generated by Phoenix. Does anyone have a list of files that can safely be ignored?

It would be nice to be able to add a quick coveralls.json generation task that would ignore files that you don't need to explicitly test in a web app with Phoenix.

Ch4s3 commented 5 years ago

Is anyone else still interested in this?

markevich commented 5 years ago

Hi! You can use the following .coveralls.json config:

{
  "skip_files": [
    "lib/co2_offset.ex",
    "lib/co2_offset/application.ex",
    "lib/co2_offset/repo.ex",
    "lib/co2_offset_web.ex",
    "lib/co2_offset_web/endpoint.ex",
    "lib/co2_offset_web/gettext.ex",
    "lib/co2_offset_web/router.ex",
    "lib/co2_offset_web/channels/application_socket.ex",
    "lib/co2_offset_web/views/error_view.ex",
    "lib/mix/tasks",
    "test"
  ]
}

Replace co2_offset with your project name :)