microsoft / microsoft/react-native-windows
JSI unit tests not running on CI loops.
Open
@vmoroz is already working on this.
Since Apr 3, 2021.
Area: Instance Management
Area: JavaScript Engine
Area: Tests
bug
Workstream: Component Parity
- Dominant language
- C++
- Stars
- 17.3k
- Forks
- 1.2k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 33
Description
Environment
-
Visual Studio Version: 2019 (16.3)
-
Build Configuration: Debug | x64
Steps to Reproduce
- Submit any pull request to this repository.
To reproduce locally:
yarn installcd vnextnuget restore ReactWindows-Desktop.slnmsbuild ReactWindows-Desktop.sln- Download https://www.nuget.org/packages/Microsoft.TestPlatform version
16.3.0. - Extract the downloaded NUPKG to an arbitrary location.
- Run
<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"
Expected Behavior
Tests for the binary JSI.Desktop.UnitTests.exe are found and run.
Actual Behavior
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.
Notes
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.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.