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

chore: Check that both gtest and gmock exist for tests. #2637

Merged
merged 1 commit into from
Feb 3, 2024

Conversation

iphydf
Copy link
Member

@iphydf iphydf commented Feb 3, 2024

We used to assume gtest installation includes gmock, but some users may have only gtest and not gmock.

Fixes #2636.


This change is Reviewable

We used to assume gtest installation includes gmock, but some users may
have only gtest and not gmock.

Fixes TokTok#2636.
@iphydf iphydf added this to the v0.2.19 milestone Feb 3, 2024
@iphydf iphydf marked this pull request as ready for review February 3, 2024 00:06
Copy link

codecov bot commented Feb 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (4201066) 73.59% compared to head (8b05296) 73.65%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2637      +/-   ##
==========================================
+ Coverage   73.59%   73.65%   +0.05%     
==========================================
  Files         148      148              
  Lines       30419    30419              
==========================================
+ Hits        22388    22406      +18     
+ Misses       8031     8013      -18     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nurupo
Copy link
Member

nurupo commented Feb 3, 2024

Oh, you beat me to it. That's pretty much the same fix I came to.

@toktok-releaser toktok-releaser merged commit 8b05296 into TokTok:master Feb 3, 2024
60 checks passed
@iphydf iphydf deleted the gmock branch February 3, 2024 18:32
This pull request was closed.
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.

Regression: cmake fails when libgtest-dev is installed but libgmock-dev is not
4 participants