k1LoW / octocov

octocov is a toolkit for collecting code metrics (code coverage, code to test ratio, test execution time and your own custom metrics).
344 stars 21 forks source link

Allow the link to the file in the comments to be changed to an HTML file to check the line of coverage #161

Open k2tzumi opened 2 years ago

k2tzumi commented 2 years ago

Proposal

Some coverage tools output reports in html to check coverage lines.

I want to change the file link destination for the code coverage of the files in the scope of the pull request.

Issue

k1LoW commented 2 years ago

For example.

If octocov could provide a mechanism to replace f.BlobURL in https://github.com/k1LoW/octocov/blob/bd6c38135491b410be5c984015e6ee7e353f37bd/report/report.go#L180 with fmt.Sprintf("%s/%s", yourExternalServerPrefix, f.Filename), would that satisfy your request?

k2tzumi commented 2 years ago

with fmt.Sprintf("%s/%s", yourExternalServerPrefix, f.Filename), would that satisfy your request?

Yes, I do. The general outline of what you want to do is fine, although I think there may be a way to specify anchor as well as path delimitation.

yyamanoi1222 commented 1 year ago

Hi @k1LoW Any progress or plan on this issue?

k2tzumi commented 1 year ago

No particular progress. I wish I had some good ideas for hosting the coverage report on GitHub only.

k1LoW commented 1 year ago

We have not been able to find a definitive solution for generating custom links.

"Is it enough to just customize the link anyway?" I don't have a good answer to the question.

I am waiting for us to come up with the next idea that will lead to the next step.

yyamanoi1222 commented 1 year ago

https://github.com/k1LoW/octocov/issues/161#issuecomment-1229148738

Do you have any concerns about adopting the means described here?

k1LoW commented 1 year ago

Do you have any concerns about adopting the means described here?

Yes, I have. I consider the following

"Is it enough to just customize the link anyway?" I don't have a good answer to the question.

yyamanoi1222 commented 1 year ago

I see. Thank you for your reply!

k2tzumi commented 9 months ago

How about handling URLs as an attribute of custom metrics? https://github.com/k1LoW/octocov/blob/main/report/custom_metrics_schema.json

k1LoW commented 9 months ago

How about handling URLs as an attribute of custom metrics?

We cannot afford to forget the three default metrics.