You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems that extension is handling disabled gtest tests incorrectly.
Current behavior
Disabled tests are executed when execution of all tests is requested and such tests are considered as failed:
[proc] Executing command: /usr/local/bin/ctest -j18 -C Debug -T test --output-on-failure -R ^Tests\.Runs$
[ctest] Site: rk-work-laptop
[ctest] Build name: Linux-c++
[ctest] Test project /home/rokas/cmake-tools-bug/build
[ctest] Start 1: Tests.Runs
[ctest] 1/1 Test #1: Tests.Runs ....................... Passed 0.00 sec
[ctest]
[ctest] 100% tests passed, 0 tests failed out of 1
[ctest]
[ctest] Total Test time (real) = 0.00 sec
[ctest] CTest finished with return code 0
[proc] Executing command: /usr/local/bin/ctest -j18 -C Debug -T test --output-on-failure -R ^Tests\.DoesntRun$
[ctest] Site: rk-work-laptop
[ctest] Build name: Linux-c++
[ctest] Test project /home/rokas/cmake-tools-bug/build
[ctest] Start 2: Tests.DoesntRun
[ctest] 1/1 Test #2: Tests.DoesntRun ..................***Not Run (Disabled) 0.00 sec
[ctest] No tests were found!!!
[ctest] CTest finished with return code 0
[ctest] Test Tests.DoesntRun failed with completion status "Disabled".
Expected behavior
Disabled tests should not be executed when we are running all tests.
They may be included in the test list and may be executed manually.
They should not impact status of the test group.
Manual execution may impact group status, but it starts to get complicated. For example, if entire group of tests is executed again, we probably want disabled tests to stop impacting group status, even if we manually executed these tests and they failed.
Hi @rokas-kbit , thanks for reporting issue here!
We can repro this issue on cmake tools latest build 1.20.47(pre-release), following is the repro steps:
Hi,
It seems that extension is handling disabled gtest tests incorrectly.
Current behavior
Disabled tests are executed when execution of all tests is requested and such tests are considered as failed:
![Image](https://private-user-images.githubusercontent.com/197569956/409456173-63588fe5-3268-4487-99df-03d93c84a2f9.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkwNzc0OTYsIm5iZiI6MTczOTA3NzE5NiwicGF0aCI6Ii8xOTc1Njk5NTYvNDA5NDU2MTczLTYzNTg4ZmU1LTMyNjgtNDQ4Ny05OWRmLTAzZDkzYzg0YTJmOS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjA5JTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIwOVQwNDU5NTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00N2YzODQ0ODY5MjI3MWUyYWQ4NWQ0MjFmZTljMmJjYzRmZDY3ZDI2ODJlMWM0YjZhMTU3OTU0ZTQzYzgxNGU5JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.IIUfXkGAb4joj08_YCfFlmCJBGBu3Chhrv-2xmdiT5Q)
Expected behavior
Minimal reproducer: bug-4267.zip
The text was updated successfully, but these errors were encountered: