CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule
Enable AOT (Ahead-of-Time) Compilation in Tests
- Vorherrschende Sprache
- C#
- Sterne
- 55
- Forks
- 19
- Ø Merge
- 40 Min.
- Gemergte PRs (30 T.)
- 1
Beschreibung
## Background
While the original "why" behind AoT being disabled in tests is lost or unknown, the "why" behind enabling it now is known.
We are in the process of collecting and fixing the NativeAoT issues in the toolkit.
## Problem
We'd like to be able to test more of the codebase with AoT than the sample app provides.
We could use our test projects, but AoT would need to be enabled.
## Solution
Due to the nature of tests using shared projects, we're not able to toggle AoT for them individually.
We'll have to either *enable csproj support for tests* (see https://github.com/CommunityToolkit/Tooling-Windows-Submodule/issues/101) or *enable aot in all test projects simultaneously.*
We've made progress towards AoT recently, but the Gallery App can only tell us so much. We'll need the ability to validate AoT issues using unit tests to ensure proper coverage long-term.
Beitragsleitfaden
Rechercherichtung
Beginne damit, zu prüfen, wie die gemeinsam genutzten Testprojekte konfiguriert sind und welches verknüpfte Issue die Aktivierung der csproj-Unterstützung für Tests betrifft. Vergleiche die Aktivierung von AoT für alle Testprojekte mit dem Hinzufügen von csproj-Unterstützung und berücksichtige die Gallery App sowie die Abdeckung durch Unit-Tests als Validierungspunkte. Als erledigt gilt die Aufgabe, wenn die Testprojekte NativeAoT-Probleme langfristig testen und validieren können.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- csharp
- Bereich
- build-system, testing
- Issue-Typ
- Feature
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100