Skip to content

Apps can't get Hot Testing from UnoFeatures, only from a manual PackageReference #26719

In progress

Description

@iurycarlos

Part of unoplatform/uno.hottesting#111 — Uno template apps should get Hot Testing through a HotTesting SDK feature

What happens

An app that writes tests with Uno.HotTesting has to add a PackageReference to it by hand. Nothing keeps those tests out of Release builds, and nothing ties the package version to the Uno.Sdk.

Some tools build the default template once and compile apps against that prebuilt set of references, without running NuGet again. They can only compile an app's tests (no CS0012 on TestContext) if the template build already includes Uno.HotTesting and MSTest.

What we need

A HotTesting value in UnoFeatures:

  • In Debug, the Uno.Sdk references Uno.HotTesting, at a version the Uno.Sdk pins.
  • The app's tests live in one folder, Tests by default. That folder is left out of Release builds, like the Hot Design previews folder.
  • UnoDisableHotTesting turns it off.

Done when

  • An app with HotTesting in UnoFeatures, and no PackageReference, compiles a test in Tests/ that uses TestContext in Debug.
  • Its Release build succeeds, and has no Uno.HotTesting, no MSTest and no test types in its output.
  • With UnoDisableHotTesting=true, the app builds in Debug and Release, without the package and without its tests.

Activity

  1. self-assigned this
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions