-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
Implicit gtest_filter fails when running 300 tests #423
Comments
Hello, It can be that your tests are depending on each other and thats why it's flaky and not because of this extension. This filtering feature is a base of other features which would not work so I need solid proof it is not working properly to start to work on some alternatives. Let me know if you found the issue or need more advice, meanwhile I don't consider this an issue of the extension. |
Yes the tests are dependent, but the vscode extension M U S T not change the order of running those tests, The order of executing the tests through VSCode should be the same as executing the tests without any filters. |
Only beginners care about some arbitrary rules. Software is all about predictability and deterministic behavior. And vscode gtest extension shuffling execution orders is an issue that must be fixed. |
GoogleTest framework does not define execution order (if I'm correct), therefore developers should not depend on it. |
The order is fixed after compilation of the tests, |
Checklist
I understand that you have privacy concerns and I expect you to understand that this extension is developed for free.
Thanks.
Describe the bug
--gtest_filter=<test-suite>.<test-case>:...
parametersfor every single test case(!)
Running the test suite on the cli with the same filter parameters causes tests to fail on the cli as well
--gtest_color=no
parameter,disabling this parameter on the CLI lets only 1/300 fail
--gtest_filter=* --gtest_color=no
lets all tests pass=> The gtest_filter parameter with many positive filter strings seems to cause flaky tests
The text was updated successfully, but these errors were encountered: