Doxygen Documentation for Google Tests

Viewed 816

Is it possible to create doxygen based documentation for Google Tests as well? I followed this link to create documentation for my C++ code, which consists of a bunch of classes.

https://flcwiki.desy.de/How%20to%20document%20your%20code%20using%20doxygen

I used the default config file and put all file paths in the INPUT = section.

This method works well and creates documentation for my class headers and .cpp files but nothing happens with my test.cpp file which looks like this:

/**
* Tests the setter for Player Id.
*/

TEST(playerTest, setPIdTest) {

    Player p;
    p.setPId(2);
    EXPECT_EQ(2, p.getPId());
}

int main(int argc, char **argv) {
    testing::InitGoogleTest(&argc, argv);
    return RUN_ALL_TESTS();
}

No documentation gets generated for the Google Tests. Am I making a mistake or doxygen simply doesn't work in this case?

0 Answers
Related