microsoft / microsoft/react-native-windows

JSI unit tests not running on CI loops.

Open
#3,552 3 comments 0 reactions 1 assignee View on GitHub

@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
  1. Submit any pull request to this repository.

To reproduce locally:

  1. yarn install
  2. cd vnext
  3. nuget restore ReactWindows-Desktop.sln
  4. msbuild ReactWindows-Desktop.sln
  5. Download https://www.nuget.org/packages/Microsoft.TestPlatform version 16.3.0.
  6. Extract the downloaded NUPKG to an arbitrary location.
  7. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.