Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running locally, flags give no output #501

Closed
jmauerhan opened this issue Oct 25, 2022 · 1 comment
Closed

Running locally, flags give no output #501

jmauerhan opened this issue Oct 25, 2022 · 1 comment

Comments

@jmauerhan
Copy link

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
Copy link
Author

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 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant