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

Set --prefix only for format-coverage subcommand. #118

Merged
merged 1 commit into from
Feb 26, 2020
Merged

Conversation

paambaati
Copy link
Owner

This PR fixes #117 and #109.

@paambaati paambaati added the bug Something isn't working label Feb 26, 2020
@paambaati paambaati self-assigned this Feb 26, 2020
@paambaati paambaati merged commit ae7014b into master Feb 26, 2020
@paambaati paambaati deleted the prefix-fix branch February 26, 2020 09:05
paambaati added a commit to paambaati/websight that referenced this pull request Feb 26, 2020
@@ -108,6 +108,9 @@ export function run(
`codeclimate.${i}.json`
];
if (codeClimateDebug === 'true') commands.push('--debug');
if (!coveragePrefix && typeof coveragePrefix === 'string') {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paambaati - As far as I can tell this logic is only going to append --prefix when coveragePrefix is "" (empty string). I'd make a PR to address/fix but I'm not quite sure what the goal here is. Are you trying to only add --prefix only when coveragePrefix was passed?

Copy link
Contributor

@rwjblue rwjblue Mar 15, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Specifically, I'm seeing the following command being executed (note the --prefix without additional argument):

/home/runner/work/ember-cli/ember-cli/cc-reporter format-coverage coverage/lcov.info -t lcov -o codeclimate.0.json --prefix 

When the configuration is:

      - name: Test && Report to Code Climate
        uses: paambaati/codeclimate-action@v2.5.4
        with:
          coverageCommand: yarn test:cover
          coverageLocations: "coverage/lcov.info:lcov"

See the line here

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you trying to only add --prefix only when coveragePrefix was passed?

That is correct.

I'd make a PR to address/fix

Much appreciated, please and thank you.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No problem! Here is what I was thinking #131 for the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Coverage.py (python)
2 participants