You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Code coverage is an indicator of how much of the source code is covered by tests.
They tried to solve this problem in #70 (#70). For obvious reasons, this is done with a flag.
Although in my opinion it would be worth making a flag for backward compatibility, that is, turning on the flag if you want the same behavior as before.
And by default, so that the calculation is correct. Okay, let's assume it is.
Great, we see tracing.lua. But where did the coverage percentage of slow_log.lua go?
After studying the documentation it becomes clear that all directories to be checked must be specified. Why existing include/exclude filters cannot be taken into account is a profound mystery.
The correct result could not be obtained. Let's assume. What will happen if we remove the exclude filter, since the includeuntestedfiles filter clearly specifies which files to output?
Even if there are some nuances that I did not take into account, in my opinion the tool should not work like this.
Of course, I may be wrong, but in my opinion this tool should work like this:
by default, consider all *.lua files that pass include/exclude filters
additional filters are not needed, they only complicate the operation of the tool.
The text was updated successfully, but these errors were encountered:
I have a project with the following structure:
I want to test everything that is not in
test/
and.rocks/
. I write in.luacov
:The result is:
Question: where is
tracing.lua
?They tried to solve this problem in #70 (#70). For obvious reasons, this is done with a flag.
Although in my opinion it would be worth making a flag for backward compatibility, that is, turning on the flag if you want the same behavior as before.
And by default, so that the calculation is correct. Okay, let's assume it is.
I run the same test. The result is:
Great, we see
tracing.lua
. But where did the coverage percentage ofslow_log.lua
go?After studying the documentation it becomes clear that all directories to be checked must be specified. Why existing include/exclude filters cannot be taken into account is a profound mystery.
The result is the same (strange, it should already be the correct result):
The correct result could not be obtained. Let's assume. What will happen if we remove the
exclude
filter, since theincludeuntestedfiles
filter clearly specifies which files to output?What we see:
slow_log.lua
.Here is the option:
It also does not give the correct result:
And once again, to be sure, we repeat the tests with the following settings:
The result for
slow_log.lua
is now correct. Buttracing.lua
is missing again.Even if there are some nuances that I did not take into account, in my opinion the tool should not work like this.
Of course, I may be wrong, but in my opinion this tool should work like this:
*.lua
files that pass include/exclude filtersThe text was updated successfully, but these errors were encountered: