Skip to content

[Discussion] googletest(gtest) or Catch2 #12

@zhjwpku

Description

@zhjwpku

Both can be easily integrated into our CMake build. As for the popularity, googletest rank 1 (33%) according to the 2023 JetBrains C++ ecosystem survey [1] while Catch2 rank 2 (12%).

Catch2 also provides basic micro-benchmarking features, and simple BDD macros, but I'm not sure do we need these features in our project.

I have no previous experience using Catch2, so I want to hear from the community, please comment which UT framework do you think we should use, and the reason why you prefer it.

[1] https://www.jetbrains.com/lp/devecosystem-2023/cpp/#cpp_unittesting_two_years

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions