-
Notifications
You must be signed in to change notification settings - Fork 15
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
Simplify Flacoco results #91
Simplify Flacoco results #91
Conversation
Flacoco would work like this:
Nice. Easier than the previous version where we had two methods.
Perfect.
Just one idea: should FlacocoResult throw an exception when the user calls
Perfect. For the moment is fine. I wonder if it would necessary to relate Locations with CtStatements when
Perfect. Thanks! |
I think that's maybe not such a good idea, because
We could have an additional mapping, it is really simple to add. |
Good point.
I wonder if that singleton architecture could impact on having several instances of FlacocoResult at the same time (e.g., when we launch flacoco in two different bugs).
Fine. Let's put that in the doc, and even in the JavaDoc.
If it's simple, I would propose to add it. It could be useful in the future. Thanks |
I don't see a case where that would happen, since all the objects inside of
Done!
Done! |
Thanks!
I agree that all the objects inside of FlacocoResult are their own instance, that is not the problem. However, I think all runners share the same FlacocoConfiguration as it's a singleton, even each of them could be configured differently. I open an issue for discussing that: #92 |
bb45fe7
to
3a9d1e9
Compare
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
Signed-off-by: André Silva <[email protected]>
3a9d1e9
to
ad37d91
Compare
nice @andre15silva , thanks! |
Closes #88
Flacoco would work like this:
run
method ofFlacoco
.FlacocoResult
. This class encapsulates the information we have now, and possibly more information in the future.FlacocoConfig
. Set the option there, and the results will be available inFlacocoResult
along side the default.Location
object, which for now contains a class name and a line number..
as usual, not by/
as we have been considering.Any suggestion? This should be the definitive output format of
flacoco
and where we will build on top of.