Skip to content

[Feature] Add unit tests for DebugScenarioNameGenerator #2907

Description

@EmmaYuan1015

Summary

Add unit test coverage for DebugScenarioNameGenerator.createScenarioName.

Background

DebugScenarioNameGenerator builds display names for several React Native debugging scenarios, including:

  • Running an application
  • Attaching to the packager
  • Direct debugging with Hermes
  • Expo debugging
  • Experimental configurations

The generated names depend on multiple parameters, but this behavior currently has no dedicated unit tests. A regression in the string-building logic could result in incorrect or inconsistent names in generated debug configurations.

Proposed Tests

Add focused unit tests covering representative scenarios:

  • React Native Android run: Run Android
  • React Native attach: Attach to packager
  • Direct iOS debugging with Hermes: Debug iOS Hermes
  • Experimental Expo Android run: Run in Exponent Android - Experimental

Scope

This change should only add unit tests. No production behavior or public API changes are required.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions