CommunityToolkit / CommunityToolkit/Tooling-Windows-Submodule

UIThreadTestMethod should forward DataRow Attribute

Aperta
#176 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
dev loop ➰ enhancement source generator :gear: testing 🏗
Lingua principale
C#
Stelle
55
Fork
19
Merge medio
40m
PR unite (30g)
1

Descrizione

`LabsUITestMethod` currently doesn't look for other attributes when being generated.

We should at least create a pattern/work to enable `DataRow` for repeated test scenarios.

Looks like `ExpectedException` is the old pattern and it can be better to use `Assert.ThrowsException` for more granular control, [see blog here with argument](https://makolyte.com/csharp-use-assert-throwsexception-instead-of-expectsexception-attribute/).

So we maybe don't want to forward that one or provide a warning when used at least?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by locating LabsUITestMethod generation and the existing attribute-inspection or ExpectedException handling. Determine how DataRow could support repeated UI test scenarios, and define whether ExpectedException should be forwarded or warned about; done means the behavior and its tests are established.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
csharp
Ambito
testing, tooling
Tipo di issue
Funzionalità
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.