awesome-repositories.com
Blog
awesome-repositories.com

Découvrez les meilleurs dépôts open-source grâce à notre recherche par IA.

ExplorerRecherches sélectionnéesAlternatives open sourceLogiciels auto-hébergésBlogPlan du site
ProjetÀ proposNotre méthodologiePresseServeur MCP
Mentions légalesConfidentialitéConditions d'utilisation
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
callstack avatar

callstack/react-native-testing-library

0
View on GitHub↗
3,390 stars·281 forks·TypeScript·MIT·2 vuesoss.callstack.com/react-native-testing-library↗

React Native Testing Library

Ce projet est un framework de test conçu pour les applications React Native, fournissant une suite d'outils pour rendre les composants dans un environnement mémoire contrôlé. Il permet aux développeurs de vérifier le comportement et la structure des interfaces mobiles en simulant les interactions utilisateur et en surveillant les transitions du cycle de vie des composants. En isolant les composants du reste de l'application, il garantit que les tests restent stables et indépendants.

Le framework se distingue par une approche axée sur l'accessibilité, privilégiant les attributs orientés utilisateur tels que les rôles, les étiquettes et le contenu textuel lors de l'interrogation de l'arbre des composants. Cette méthodologie garantit que les tests reflètent la manière dont un utilisateur réel perçoit et interagit avec l'interface, plutôt que de se baser sur des détails d'implémentation internes. Il inclut également un support robuste pour les opérations asynchrones, synchronisant automatiquement les assertions avec les mises à jour d'état en arrière-plan et le rendu différé de l'interface pour éviter les conditions de concurrence.

Au-delà du rendu et de l'interaction, la bibliothèque offre des capacités complètes pour valider l'état de l'interface, inspecter les styles des composants et vérifier les propriétés d'accessibilité. Elle prend en charge le test des hooks personnalisés en isolation, la gestion d'arbres de composants complexes via l'injection de fournisseurs, et la vérification structurelle via des snapshots. Ces fonctionnalités permettent une assurance qualité approfondie pour divers scénarios d'interface mobile.

Features

  • Component and Interaction Testing - Mounts components into a virtual environment to enable interaction and verification during testing.
  • React Native Testing Frameworks - Provides a specialized framework for testing mobile components by simulating user interactions and verifying rendered output through accessible, user-centric queries.
  • Scene Element Queries by Criteria - Enables retrieval of specific interface components using criteria like roles, labels, or text.
  • Asynchronous UI Test Verifications - Synchronizes test assertions with background state updates to verify application behavior in asynchronous scenarios.
  • User Interaction Simulation - Simulates user inputs like presses and gestures to verify application responsiveness to real-world behavior.
  • Component Content Validation - Check that interface elements display the correct text or accessible names to ensure that the information presented to the user matches the intended design.
  • Component Rendering Utilities - Provides utilities for mounting and rendering components in a controlled environment to facilitate testing.
  • Auto-Waiting Assertions - Pauses test execution while repeatedly checking conditions to ensure assertions account for delayed state changes.
  • Element State Assertions - Provides specialized matchers to verify element properties and accessibility status during UI state validation.
  • Asynchronous Test Handling - Synchronizes test assertions with asynchronous UI updates and state transitions.
  • React Component Testing - Implements a testing environment for mounting and verifying React-based mobile UI components in isolation.
  • Visual Assertion Validators - Asserts expectations about rendered output, including visibility and accessibility status, using specialized matchers.
  • Accessibility Query Engines - Provides an accessibility-first query engine to locate interface elements by roles and labels.
  • Asynchronous Element Waiting - Queries the component tree repeatedly until elements appear, synchronizing tests with asynchronous UI updates.
  • Test-Controlled State Updates - Forces state updates and asynchronous effects to complete before assertions run to prevent race conditions.
  • Rendered Tree Querying - Locates specific components in the rendered tree using attributes for state verification.
  • Component Snapshots - Generates JSON snapshots of component trees to facilitate structural verification.
  • User Action Intents - Locates components using user-centric intent criteria like roles and labels.
  • Component Tree Traversers - Navigates rendered component hierarchies to locate elements based on accessibility and structural properties.
  • Component Re-renderers - Supports re-rendering components with new properties to process asynchronous updates during testing.
  • Snapshot Verification Tools - Serializes rendered component trees into persistent snapshots to track and validate UI structure over time.
  • Test Isolation - Ensures test stability by mounting components into isolated, controlled memory environments.
  • Asynchronous Polling Mechanisms - Implements asynchronous polling mechanisms to synchronize test assertions with background UI updates.
  • Mobile Accessibility Auditing - Provides utilities for verifying that mobile interface elements correctly communicate their status and labels to assistive technologies.
  • Accessibility Testing Tools - Provides a testing environment that prioritizes user-facing roles and labels to ensure mobile interfaces are perceivable by assistive technologies.
  • Component Testing - Provides a library for verifying the behavior and structure of UI components through isolated testing and lifecycle management.
  • Text Rendering Stress Tests - Enforces runtime constraints by validating that text strings are correctly placed within designated containers.
  • Mobile Testing Frameworks - Offers a comprehensive testing environment for mobile applications that supports component rendering, state validation, and asynchronous event simulation.
  • Component Lifecycle Hooks - Wraps components in lifecycle hooks to monitor state transitions and side effects during testing.
  • Accessibility State Synchronization - Validates that interface elements correctly communicate their accessibility states to assistive technologies.
  • Custom Hook Testing - Enables testing of hook logic in isolation to verify state transitions and side effects without a full component tree.
  • User-Centric Verification - Enables testing mobile applications by querying elements based on how a real user perceives the interface.
  • Context Providers - Injects context providers and layout wrappers to simulate the application environment required for state management.
  • Element Wait Conditions - Monitors the component tree until elements are removed, confirming successful unmounting or hiding of UI components.
  • Scoped Queries - Allows restricting search queries to specific subtrees to isolate interactions within complex component structures.
  • Presence Verifiers - Validates the presence and existence of components within the rendered structure during tests.

Historique des stars

Graphique de l'historique des stars pour callstack/react-native-testing-libraryGraphique de l'historique des stars pour callstack/react-native-testing-library

Recherche par IA

Explorez plus de dépôts awesome

Décrivez vos besoins en langage naturel — l'IA classe des milliers de projets open source sélectionnés par pertinence.

Start searching with AI

Collections incluant React Native Testing Library

Sélections manuelles où React Native Testing Library apparaît.
  • un outil pour tester la connectivité réseau

Alternatives open source à React Native Testing Library

Projets open source similaires, classés selon le nombre de fonctionnalités partagées avec React Native Testing Library.
  • didi/mpxAvatar de didi

    didi/mpx

    3,905Voir sur GitHub↗

    MPX is a cross-platform framework designed to build applications for multiple mini-program ecosystems and the web from a single codebase. It utilizes a static transpilation pipeline to transform source code into platform-specific bundles, employing a single-file component system that encapsulates templates, logic, and styles. The framework provides a reactive state management system that automatically synchronizes application data with the user interface through computed properties and watchers. The project distinguishes itself through a robust build-time toolchain that supports sub-package p

    JavaScript
    Voir sur GitHub↗3,905
  • enzymejs/enzymeE

    enzymejs/enzyme

    19,831Voir sur GitHub↗

    Enzyme is a testing utility for React components designed to verify their output and behavior in a test environment. It serves as a test harness for UI components, providing tools to render visual elements, manage state transitions, and simulate synthetic events. The library distinguishes itself through multiple rendering modes, including a shallow rendering engine for isolated unit testing and full DOM rendering for testing deep integration. It employs an adapter-based integration system to maintain compatibility across different versions of the underlying framework. The toolkit covers a br

    JavaScript
    Voir sur GitHub↗19,831
  • jnicklas/capybaraAvatar de jnicklas

    jnicklas/capybara

    10,166Voir sur GitHub↗

    Capybara is a browser automation testing library and framework for web application acceptance testing. It provides a high-level API for automating browser navigation and element interaction to validate user-facing features. The project features a cross-browser driver interface that allows switching between headless and full browser environments without modifying the underlying test code. This abstraction enables the simulation of complex web workflows across different browser drivers and environments. The suite covers user interaction simulation, including form filling, click events, and bro

    Ruby
    Voir sur GitHub↗10,166
  • mobile-dev-inc/maestroAvatar de mobile-dev-inc

    mobile-dev-inc/Maestro

    10,788Voir sur GitHub↗

    Maestro is a declarative mobile and web UI automation framework designed for end-to-end testing. It operates by querying the native accessibility tree of an application, allowing for black-box testing without requiring source code instrumentation or platform-specific dependencies. The framework distinguishes itself through a unified command syntax that abstracts interactions across Android, iOS, and web environments. It features a dynamic synchronization engine that automatically pauses test execution to account for non-deterministic animations and network-dependent content loading, ensuring

    Kotlinandroidblackbox-testingios
    Voir sur GitHub↗10,788
Voir les 30 alternatives à React Native Testing Library→

Questions fréquentes

Que fait callstack/react-native-testing-library ?

Ce projet est un framework de test conçu pour les applications React Native, fournissant une suite d'outils pour rendre les composants dans un environnement mémoire contrôlé. Il permet aux développeurs de vérifier le comportement et la structure des interfaces mobiles en simulant les interactions utilisateur et en surveillant les transitions du cycle de vie des composants. En isolant les composants du reste de l'application, il garantit que les tests restent stables et…

Quelles sont les fonctionnalités principales de callstack/react-native-testing-library ?

Les fonctionnalités principales de callstack/react-native-testing-library sont : Component and Interaction Testing, React Native Testing Frameworks, Scene Element Queries by Criteria, Asynchronous UI Test Verifications, User Interaction Simulation, Component Content Validation, Component Rendering Utilities, Auto-Waiting Assertions.

Quelles sont les alternatives open-source à callstack/react-native-testing-library ?

Les alternatives open-source à callstack/react-native-testing-library incluent : didi/mpx — MPX is a cross-platform framework designed to build applications for multiple mini-program ecosystems and the web from… enzymejs/enzyme — Enzyme is a testing utility for React components designed to verify their output and behavior in a test environment.… jnicklas/capybara — Capybara is a browser automation testing library and framework for web application acceptance testing. It provides a… mobile-dev-inc/maestro — Maestro is a declarative mobile and web UI automation framework designed for end-to-end testing. It operates by… rstacruz/cheatsheets — This project is a comprehensive collection of web development reference guides and technical cheat sheets. It provides… testing-library/react-hooks-testing-library — This project is a specialized test harness and mocking utility designed for unit testing React hooks in isolation. It…