react-native-windows/docs/testing.md

1.2 KiB

Testing ReactNative for Windows

When contributing to this project, unit and integration tests should be run to help prevent new bugs and regressions.

Windows Desktop

Tests should be run with a VSTest-compatible client (i.e. VSTest.Console.exe, Visual Studio Test task). This project includes convenience scripts to set up and run the test artifacts.

Unit Tests

Implemented in the React.Windows.Desktop.UnitTests project. Isolated, self-contained tests covering concrete implementations against mock dependencies and data.

& Scripts\UnitTests.ps1

Integration Tests

Implemented in the React.Windows.Desktop.IntegrationTests project. Higher-level workflows interacting with real external dependencies (i.e. file system, networking servers). These tests can run on the local development host.

# Starts test services and runs tests.
& Scripts\IntegrationTests.ps1

E2E Tests

Implemented in packages/e2e-test-app
Please follow Author and Run E2E Test for React Native Windows for E2E Tests