Skip to content

[Discussion] googletest(gtest) or Catch2 #12

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions