Skip to content

Tarik Billa

  • Web Development
    • html
    • vue.js
    • laravel
    • css
    • javascript
    • jquery
    • node.js
    • php
    • asp.net
  • Programming
    • python
    • java
    • c
    • c++
    • c#
  • git
  • android

googletest

Can I give better names to value-parameterized tests in gtest?

January 9, 2024 by Tarik

INSTANTIATE_TEST_CASE_P accepts an optional 4th argument which can be used for this purpose. See https://github.com/google/googletest/blob/fbef0711cfce7b8f149aac773d30ae48ce3e166c/googletest/include/gtest/gtest-param-test.h#L444.

Categories googletest Tags googletest Leave a comment

What is the difference between TEST, TEST_F and TEST_P?

April 28, 2023 by Tarik

All documentation is covered in the official github repo. The primer documentation also covers a lot of information regarding the test macros. You could use the following summary and the examples linked to choose what you want to use. TEST() is useful when you want to write unit tests for static or global functions or … Read more

Categories googletest Tags googlemock, googletest Leave a comment

How to specify multiple exclusion filters in –gtest_filter?

December 24, 2022 by Tarik

You group the patterns in the form –gtest_filter=POSTIVE_PATTERNS[-NEGATIVE_PATTERNS] So in this case, you want –gtest_filter=-ABC.*:BCD.*

Categories googletest Tags googletest Leave a comment

Tarik Billa

Software Engineer
tarikbilla@gmail.com
+8801884414000
  • Reuse a hash in YAMLApril 17, 2024
  • Dockerfile: how to redirect the output of a RUN command to a variable?April 16, 2024
  • How to cd to a directory with spaces in the directory name?April 16, 2024
  • Maximum MIME type length when storing the type in a databaseApril 16, 2024
  • What is the difference between Unit, Integration, Regression and Acceptance Testing?April 16, 2024
© 2026 Tarik Billa