Feature: Display test pages in testing app for single experiment head
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 35/100
Rechercherichtung
Beginne damit, die im Issue verknüpfte App.Head.props-Elementgruppe zu lesen, und verfolge dann die vorhandene Beispielindizierung und die TabbedPage-Implementierung. Überprüfe, wie die Klassen Log und VisualUITestBase eingebunden werden und wie der source generator Beispielseiten bereitstellt. Als erledigt gilt die Aufgabe, wenn Testseiten im single-component head mode als Tabs erscheinen, beim Auswählen geladen werden und im all-up mode keine Auswirkungen haben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Describe the feature
When developing tests, it can be beneficial to see the test page to develop it, just like any other sample.
May also make debugging tests easier if a failure is happening and you want to see what the page looks like for the setup of a test.
The feature would be about adding additional tabs to the TabbedPage interface when running a component in the single-head mode for that component alone (wouldn't be included or do anything when run all-up as the all component mode).
Desired behavior
When running the single component head, you'd be able to open each test page like you do samples. (Eventually we may need better organization of the tabs here as components get more complex or add many samples/tests.)
When clicking on the tab, it'd just load the test page.
We wouldn't necessarily need to connect the driving test code to this, though it may be required to include the whole test project if more than just code for a page is used for testing, we wouldn't know the full implementation details.
Basically in the App.Head.props file we should include the component's test shared project code in this item group:
We'd also need to include the Log and VisualUITestBase classes that the test code may reference (we can't just include the test shared project as it has the App.xaml test head which would conflict with our app head code).
Ideally, we'd use a source generator again here to detect and index these test pages like we do for samples, then the TabbedPage would just get another bucket of pages and a template in order to show them. (We should probably define a class/record for passing info to the TabbedPage over the tuple we have now.)
Screenshots
No response
Code Platform
- UWP
- WinAppSDK / WinUI 3
- Web Assembly (WASM)
- Android
- iOS
- MacOS
- Linux / GTK
Windows Build Number
- Windows 10 1809 (Build 17763)
- Windows 10 1903 (Build 18362)
- Windows 10 1909 (Build 18363)
- Windows 10 2004 (Build 19041)
- Windows 10 20H2 (Build 19042)
- Windows 10 21H1 (Build 19043)
- Windows 11 21H2 (Build 22000)
- Other (specify)
Other Windows Build number
No response
App minimum and target SDK version
- Windows 10, version 1809 (Build 17763)
- Windows 10, version 1903 (Build 18362)
- Windows 10, version 1909 (Build 18363)
- Windows 10, version 2004 (Build 19041)
- Other (specify)
Other SDK version
No response
Visual Studio Version
No response
Visual Studio Build Number
No response
Device form factor
No response
Additional context
In the future, we could investigate a way to trigger running a test method against the page that it has been linked to in order to facilitate reproducing tests while being able to watch them or better interact with visual tree tools, etc... (this would probably require more information from a source generator to generate a look-up that's easier/faster to reference)
Help us help you
Yes, but only if others can assist.
- Vorherrschende Sprache
- C#
- Sterne
- 57
- Forks
- 20
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus CommunityToolkit/Tooling-Windows-Submodule
-
Running WASM on All Solution Doesn't work in VSEvtl. wieder frei @Arlodotexe hat das vor 245 Tagen übernommen, und es ist kein Pull Request offen. Offenbug :bug: build :fire: regression sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#307 · 2 Kommentare · 1 zugewiesene Person ·
-
GenerateAllSolution with only wasm target won't buildEvtl. wieder frei @Arlodotexe hat das vor 245 Tagen übernommen, und es ist kein Pull Request offen. Offenbug :bug: build :fire: sample app 🖼 WASM
CommunityToolkit/Tooling-Windows-Submodule#306 · 1 Kommentar · 1 zugewiesene Person ·
-
bug :bug:
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 55/100
-
Add basic usage docs for Build-Toolkit-Docs.ps1 scriptEvtl. wieder frei @Arlodotexe hat das vor 597 Tagen übernommen, und es ist kein Pull Request offen. Offendocumentation :page_with_curl: low difficulty powershell
CommunityToolkit/Tooling-Windows-Submodule#282 · 1 zugewiesene Person ·
-
bug :bug: regression testing 🏗
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
Alle Issues in CommunityToolkit/Tooling-Windows-Submodule
Ähnliche Issues
-
area: core bug help wanted ready
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
ZaidX88/sluice#265 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
area: remote bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag
-
Install a C# EnvironmentOffen📅 Sprint 4 Module-Tools Setup Submit:None 🦔 Size Tiny
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 70/100
CodeYourFuture/Module-Tools#712 ·
-
:watch: Not Triaged dotnet-fundamentals/svc
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
Maintainer antworten meist innerhalb von 1 Tag
-
A: Mapping P3: Standard T: New Feature
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
space-wizards/space-station-14#46878 · 2 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag