I'm not a coverage percentage freak either :)
I am willing to improve tests to make them stable, etc... but....

Since I'm totally new to the code base, code coverage tool would be a great
help since I can scan code first, record the coverage and then use it ase
assurance that may modifications do not reduce it and possibly expose code
under test to future problemas (by comparing fist coverage run results with
subsequent ones).
Lack of code coverage tool is not a problem for new code when one follows
TDD literally:
1 write test that fails
2. write just enough code to make the test pass
3. repeat

but for existing code one can modify tests code with good intentions, and
by accident "uncover" the code under tests.

So I'm thinking of test coverage tool as yet another safety net (next to
static analysis and automated tests) which will help me not to break
anything, cause I think it is better not to contribute anything than to
contribute bugs.

Anyway. I'll fiddle with JaCoCo an maybe I'll succeed in running it. I'll
let you know.

Thank you for all the support so far.


On Mon, Mar 28, 2022 at 12:15 PM Matthias Bläsing <[email protected]>
wrote:

> Hi,
>
> Am Sonntag, dem 27.03.2022 um 20:35 -0700 schrieb Łukasz Bownik:
> > What should I use for code covarage?
>
> the problem of NetBeans currently is not the number of tests, but the
> number of tests, that are broken in various ways.
>
> In know that this might sound heretic, but code coverage is a tool, not
> the solution. It can ensure that code does the right thing, but you can
> cover all code without any meaningful tests.
>
> I would estimate, that the whole NetBeans test suite takes many CPU
> hours and currently does not run stable (see flaky tests).
>
> For small problems, you could have a look at the old JIRA or the
> current github issues and see if you find things you want to work on.
> Maybe easier: You have your pet bug, fix it.
>
> Greetings
>
> Matthias
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
>
>
>
>

-- 
Łukasz Bownik

Reply via email to