-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need problem matcher for Google Test #1079
Comments
We don't use it internally here, but if you or someone else watching this thread wants to post some sample output, that would expedite cooking up a regular expression that meets your needs. Defining a problem matcher is fairly easy once you know what the output is supposed to look like so if you or someone else wants to help with that, we would gladly include it in the extension. |
gtest is by no means the standard unit test framework(not even crossed 50% yet), lots of other frameworks have a large number of users. See https://www.jetbrains.com/research/devecosystem-2017/cpp/ for more details. That said, having a matcher for gtest would be welcomed addition but I think the right way would to use XML output that gtest produces and mark the code(individual tests) as failing or passing inside the editor as well. Several IDEs already do that :p |
Here's a sample output:
I've tried creating a problem matcher for this but I can't seem to get it right:
or for multiline capturing:
https://regex101.com/r/QbYxwf/1 shows that the main regex should be correct, but I don't see any problems generated after running the task. |
Thank you for the feature suggestion. There are a few Google Test extensions available for VS Code now, and we believe that adding a problem matcher to those extensions is the better route. |
It seems that
Google Test
is pretty much the standard unit test framework for C++ these days. Could we get a problem matcher for gtest in this extension?The text was updated successfully, but these errors were encountered: