codeclimate / test-reporter

Code Climate Test Reporter
MIT License
154 stars 76 forks source link

Running locally, flags give no output #501

Closed jmauerhan closed 1 year ago

jmauerhan commented 1 year ago

I'm trying to debug why code coverage isn't being reported to Code Climate, and I saw no output from the commands in CI. I tried testing locally and I'm still getting no output from the reporter:

curl -L -O https://codeclimate.com/downloads/test-reporter/test-reporter-latest-darwin-amd64 > ./cc-test-reporter
chmod +x ./cc-test-reporter

Running any commands with flags to get version, help or debug provides no output - for example:

jessicamauerhan$ chmod +x ./cc-test-reporter
jessicamauerhan$ ./cc-test-reporter -h
jessicamauerhan$ ./cc-test-reporter -v
jessicamauerhan$ ./cc-test-reporter --debug
jessicamauerhan$ ./cc-test-reporter before-build -v
jessicamauerhan$ ./cc-test-reporter before-build -h
jessicamauerhan$ ./cc-test-reporter before-build --debug

I tried the --debug flag based on this documentation: https://docs.codeclimate.com/docs/test-coverage-troubleshooting-tips#self-help-from-technical-documentation

and the other flags from this: https://github.com/codeclimate/test-reporter/blob/1be9d22a61d05cf3c4b6d3306bc28d271f3a430d/man/cc-test-reporter.1.md

jmauerhan commented 1 year ago

Problem was how I was installing the reporter, I noticed the size was 0 bytes - I had copied a curl command from another codebase. I fixed that and the reporter is working as expected :)