cqse / Teamscale-AzureDevOps-Extension

Plugin for Azure DevOps that provides: Extension for the WorkItems pages to show a TestGap badge, Pipeline Task to upload coverage, findings, and other reports to Teamscale
https://marketplace.visualstudio.com/items?itemName=CQSEGmbH.teamscale-azure-devops-plugin
Apache License 2.0
3 stars 1 forks source link

Report Upload Task doesn't support wild cards within file names #110

Open Bot-terbloom opened 3 weeks ago

Bot-terbloom commented 3 weeks ago

If you use a file glob pattern like "C:\Temp\coverage-merged*.json", the task can't find any files matching the pattern, even though there is a file called "C:\Temp\coverage-merged-04-09-24-16-28-00.json"

IMO the bug could come from "Teamscale-AzureDevOps-Extension/reportUploadTask/utils.ts", where it's assuming, that the path until the "" is a folder. So it's assuming, that "C:\Temp\coverage-merged" is a folder and is trying to search all the .json files in that folder.

Bot-terbloom commented 3 weeks ago

The workaround is pretty easy: Just put my file into a new folder and upload it from there :-)