Hi Cukier!

1. There is no way to ignore files but it could definitely be added. Note
the coverage in the files are independent though, so ignoring the files
would only affect the total coverage report shown by mix.

2. In this example, what is not being covered is the default argument. You
never call that function without an argument, so the default argument is
never covered, showing the line as red.

On Thu, Sep 10, 2020 at 5:32 AM TecNoz by Daniel Cukier <[email protected]>
wrote:

> I am trying to run a test coverage report in my project, but there are
> some difficulties. I run
>
> $ mix test --cover
>
> 1) Is there a way to ignore some files? I'd like to ignore some
> auto-generated files from the coverage report, because the files that
> matter are those that I created code.
> 2) The generated report have some mysterious bugs. It shows that module
> definition lines are uncovered, but at the same time some lines inside the
> module are covered. Also it shows method definition lines uncovered, but
> lines inside those methods are covered.  Here is an example. How
>
> [image: Screen Shot 2020-09-10 at 00.29.59.png]
>
> Thanks
>
> D
>
> --
> You received this message because you are subscribed to the Google Groups
> "elixir-lang-core" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elixir-lang-core/cc9b3c23-0df6-4afb-8eaf-48093cbf730fn%40googlegroups.com
> <https://groups.google.com/d/msgid/elixir-lang-core/cc9b3c23-0df6-4afb-8eaf-48093cbf730fn%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"elixir-lang-core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elixir-lang-core/CAGnRm4JFVU3snXKrTq117x-qa-P3GMwjLwbUAinb%2BT4xbL1Fww%40mail.gmail.com.

Reply via email to