You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Apps can't get Hot Testing from UnoFeatures, only from a manual PackageReference #26719
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