google / google/googletest

Missing documentation for InitGoogleMock

Open
#3,299 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
C++
Stars
39.5k
Forks
10.9k
Avg merge
6d 13h
Merged PRs (30d)
1

Description

**Describe the bug**

--gmock_verbose=LEVEL option is mentioned in documentation but to work it either requirres using gmock_main.a or calling ::testing::InitGoogleMock in main.

**Steps to reproduce the bug**
Compile any test suite using gtest_main.a or using testing::InitGoogleTest in main to initialize gtest.

**What version of GoogleTest are you using?**
1.10
**What operating system and version are you using**
Linux

**What compiler and version are you using?**
gcc 9.3.0

**What build system are you using?**
cmake 3.17

**Additional context**
None

Contributor guide

Open the contributing guide

Research direction

Start by locating the documentation that mentions the --gmock_verbose=LEVEL option and review how gtest_main.a and InitGoogleTest are described. Update the documentation to explain when InitGoogleMock or gmock_main.a is required, then verify that the documented setup matches the reported GoogleTest 1.10 behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.