Closed swwol closed 1 month ago
Could it be that the files are existing in 2 locations? Depending on your inclusion filter it might find both? (e.g. in the build directory, and in a differnet directory)?
I thought it might be something like that initially, but it doesn't seem to be - I uploaded the test results to GitHub using the same glob as used for the junit reporter action, and then downloaded that artefact and used grep to search for the failure message ("This test is designed to fail"). There is only one xml file containing that sentence. So I don't think the files are duplicated.
Ah - pretty sure its me doing something silly. (I was downloading the uploaded files and hence creating a copy of them) Apologies!
I'm trying this action on a Android repo - I'm seeing duplicate annotations for my failed test - and the total number of tests is twice what it should be - so it seems the tests are being counted twice. I've checked the xml files and these do not contain duplicates, so I'm guessing there is something about the format of the files that is leading to double counting.
Annotatons:
This is the xml for the failed test: