Skip to content

Fix gcov formatter #338

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

Merged
merged 2 commits into from
May 21, 2018
Merged

Fix gcov formatter #338

merged 2 commits into from
May 21, 2018

Conversation

ale7714
Copy link
Contributor

@ale7714 ale7714 commented May 18, 2018

  • Adds getSourFileName. Formatter will parse from coverage file
    the source file name, use it to create the SourceFile and
    then, add it to the Report.

  • Updates specs and fixtures so we ensure that we're returning
    actual source file names and not coverage file names.

Addresses #328

Successful report uploaded here using make test-gcov.

* Adds getSourFileName. Formatter will parse from coverage file
  the source file name, use it to create the SourceFile and
  then, add it to the Report.

* Updates specs and fixtures so we ensure that we're returning
  actual source file names and not coverage file names.

Addresses #328
@codeclimate-hermes codeclimate-hermes requested review from wilson and removed request for codeclimate-hermes May 18, 2018 20:37
Copy link
Contributor

@chrishulton chrishulton left a comment

Choose a reason for hiding this comment

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

LGTM after fixing typo.

@@ -116,3 +123,27 @@ func parseSourceFile(fileName string, gitHead *object.Commit) (formatters.Source

return sf, nil
}

func getSourFileName(coverageFileName string) (string, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

just a small typo here: getSourFileName -> getSourceFileName

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good catch thanks!

@ale7714 ale7714 merged commit 439c33c into master May 21, 2018
@ale7714 ale7714 deleted the ap/fix-gcov branch May 21, 2018 21:57
ale7714 pushed a commit that referenced this pull request May 21, 2018
* [FIX] Update `Gcov` formatter to report the correct source file paths [#338][]

[#338]: #338
@ale7714 ale7714 mentioned this pull request May 21, 2018
ale7714 pushed a commit that referenced this pull request May 21, 2018
* [FIX] Update `Gcov` formatter to report the correct source file paths [#338][]

[#338]: #338
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

Successfully merging this pull request may close these issues.

2 participants