cpp-testing / GUnit

GUnit - Google.Test/Google.Mock/Cucumber on steroids
260 stars 51 forks source link

Add ability to show GUnit Tests in gtest_list_tests #76

Open MattYoung50 opened 2 years ago

MattYoung50 commented 2 years ago

Right now it only lists the name of the test fixture and not any of the SHOULD test cases:

GTest Version

image image image

Notice how CalculatorTestsGTest has its test case ShouldReturnCorrectSumOf2Numbers

GUnit Version

image image image

Notice how Calculator Tests GUnit Add doesn't list its test cases Return Correct Sum of 9 + 8 and Return Correct Sum of 9 + 9

MattYoung50 commented 2 years ago

Many VSCode plugins discover GTest tests using --gtest_list_tests. If this feature was added, a lot of the popular GTest VSCode extensions like TestMate would work natively.