To reproduce locally:
yarn install
cd vnext
nuget restore ReactWindows-Desktop.sln
msbuild ReactWindows-Desktop.sln
16.3.0
.<path to extracted NUPKG>\tools\net451\Common7\IDE\Extensions\TestPlatform\vstest.console.exe target\x64\Debug\JSI.Desktop.UnitTests\JSI.Desktop.UnitTests.exe /TestAdapterPath:"C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\Common7\IDE\Extensions\pemwd5jw.szc"
Tests for the binary JSI.Desktop.UnitTests.exe
are found and run.
No tests are discovered:
No test is available in x64\Debug\JSI.Desktop.UnitTests\JSI.Desktop.UnitTests.exe. Make sure that test discoverer & executors are registered and platform & framework version settings are appropriate and try again.
Because the CI builds currently use a VS2017 VM image, the 16.x test runner must be installed in-place.
An image with an up to date VS2019 could use its own vstest.console.exe
that would not trigger this bug.
This should be cheap now that Vlad did the work to get GTest running. @tudorms it could be worth wiring this up with the V8 JSIExecutorFactory once integration goes further
@JunielKatarn I believe we are running VS2019 images in CI now (see vs2019.yml) - so is this still a problem?
@asklar Not sure. It's specifically about the VSTest framework, not so much about VS.
I'll verify later today.
Most helpful comment
@asklar Not sure. It's specifically about the VSTest framework, not so much about VS.
I'll verify later today.