gurock / trcli

TR CLI (trcli) is a command line tool for interacting with TestRail.
Mozilla Public License 2.0
48 stars 39 forks source link

Unable to use glob with junit, if there's only one file returned by the glob pattern #241

Open PierrePaul opened 1 week ago

PierrePaul commented 1 week ago

TestRail CLI Version

1.9.5

CLI Environment

docker python 3.12

TestRail Version

TestRail v8.0.4 Default (7036)

TestRail Instance Type

Professional Cloud

Current behavior

Im using cypress, while doing my tests to integrate with testrail, I was running just one test. So only one .xml file is being generated. Since I'm planning for the future, Im using trcli with a glob pattern (-f "reports/TEST-*.xml"), but since there's only file, the junit_xml parser doesn't have anything to merge.

It currently returns the filepath (which includes the glob pattern instead of the real filepath).

Desired behavior

I would expect trcli to select the right file and upload it.

More Details

No response