google / googletest

GoogleTest - Google Testing and Mocking Framework
https://google.github.io/googletest/
BSD 3-Clause "New" or "Revised" License
33.79k stars 10k forks source link

[FR]: --gtest_filter needs the ability to filter in a case insensitive manner #4404

Closed towel42-com closed 8 months ago

towel42-com commented 8 months ago

Does the feature exist in the most recent commit?

No.

Why do we need this feature?

Often times, as a test suite grows, case may change, either intentionally or by accident.

Being able to filter in a case insensitive manner would greatly improve the usability of the filter

Describe the proposal.

for positive or negative filters, using a suffix of '^' to search in a case insensitive manner --gtest_filter=foo^ will find all variants of tests that end with foo, Foo, FOO, fOo etc. --gtest_filter=foo will work as before.

Is the feature specific to an operating system, compiler, or build system version?

No

derekmauro commented 8 months ago

We don't plan to do this.

towel42-com commented 8 months ago

I have a patch to support it. Is it that you dont want it? or have no desire to publicize it? I havent created fork yet, but could if warranted. it was a very trivial change, with no changes to the current usage model since ^ is not valid in a function name