Closed klippx closed 1 year ago
i don't think the action accepts relative paths, instead of./dgs try ${{ github.workspace }}/dgs
it may fix the problem
later i will look into accepting relative paths
Thanks for reply! And I like your project, it has nice config options and Im happy that you are working with it actively.
I think it might be your assumption when you wrote the script, if we look at this example clover file https://github.com/lucassabreu/comment-coverage-clover/blob/main/clover.example.xml
<file name="/var/www/html/src/main/php/PHPMD/AbstractNode.php">
It doesn't look like mine:
<file name="index.ts" path="/Users/MKLIPPIN/repos/graphql-federation-mono/dgs/environmental/create-server/index.ts">
Since you have only seen everything in name
you have had no reason to deal with the clover files that have split it into name
and path
?
My setup is that I run two different jest processes (integration and unit) which outputs istanbul json coverage reporter files.
I then merge these two different files using nyc merge into a single json.
Then I use nyc report
to create a clover xml output from the final json which has the <file name=".." path="..">
format
Not super relevant but I am using very popular JS community tools here, if we can make it work for me then it will work for most JS/TS community members 🎉
i did not saw the path attribute.
i will look into it later today
@klippx on release v0.9.1 we added support for the path field, the person used jest and improved the code
since you are still at v0.3.0 the improvement is not there.
https://github.com/lucassabreu/comment-coverage-clover/releases/tag/v0.9.1
Houston, we have v0.9.1? When I look at marketplace 0.3.0 is the "latest" 😅 What's going on there, you might want to look into that.
looks like the marketplace does not pull the new releases automatically, i forced the update now.
hi @klippx were you able to test it with the newest version?
The links now work perfectly, thanks!
I have a clover coverage xml on this format
I am running the GH Action with this config:
So if we consider the
path
in clover which in my example is/Users/MKLIPPIN/repos/graphql-federation-mono
then on CI it should be whatever, maybe it is/home/runner/work/graphql-federation-mono
.But when it generates the table all the links are wrong, it is completely missing folder:
, in this case it is missing the path segment
create-server
.But if there are multiple levels of folder, it removes them all and replaces with emty string.
What's wrong? Something unexpected in my clover xml?
I have also tried experimenting with
dir-prefix
but not found anything that works.This is how my table looks, there is no folder information here either, perhaps a clue? It just appears as a flat structure, which is confusing when a lot of files are called index.ts