Open TatianaKapos opened 2 years ago
It looks like Meta switched to googletest version 1.10 while we're on https://github.com/Microsoft/TestAdapterForGoogleTest 1.8.1 (I don't think the latest version has INSTANTIATE_TEST_SUITE_P)
I guess the next step is to see about getting that fork updated, although it doesn't look terribly active. We'll have to drum up some contacts. This should be the first line of investigation (as the repo should have a statement on level of support).
Or can we not use this, but that may be disruptive to how this is used to support our build infrastructure.
Or we can consume this not via nuget and find a vcpkg distribution of this as source or binaries.
In the meantime the workaround here is a fork in ReactCommon. We are not blocked, but we have a goal to minimize forks here to keep agility.
I kind of like the idea of removing usage of the adapter. Using raw GoogleTest would be moving official tests from a VS plugin, to CLI tool. That move makes it easily runnable in more places, but removes tight integration of some tests with Visual Studio.
An idea for similar-ish DevX could be to add a locally runnable "yarn test:native", which runs both GTest, and "VSTest.console".
FYI @JunielKatarn, who was the resident "MSTest" person I worked with 😂.
There seems to be an up to date VS code plugin for raw GTest. https://marketplace.visualstudio.com/items?itemName=DavidSchuldenfrei.gtest-adapter
I'm not sure if we're ever going to get new 1.10 binaries out of https://github.com/microsoft/TestAdapterForGoogleTest
even the documentation is not explicit/clear about this
Problem Description
Latest integrations brought a commit that switches from INSTANTIATE_TEST_CASE_P to INSTANTIATE_TEST_SUITE_P in googletests. https://github.com/facebook/react-native/commit/12a32549f427c993637d41569c49baf5ab7113e8. This causes us to fork ReactCommon/jsi/jsi/test/testlib.cpp.
It looks like Meta switched to googletest version 1.10 while we're on https://github.com/Microsoft/TestAdapterForGoogleTest 1.8.1 (I don't think the latest version has INSTANTIATE_TEST_SUITE_P)
Errors:
Steps To Reproduce
Expected Results
No response
CLI version
7.0.3
Environment
Target Platform Version
No response
Target Device(s)
Desktop
Visual Studio Version
Visual Studio 2019
Build Configuration
No response
Snack, code example, screenshot, or link to a repository
No response