Run tests last - Order attribute case
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- csharp
- Ambito
- testing-qa
Direzione di ricerca
L’issue indica l’attributo Order esistente e fornisce esempi in C#, ma non include file del repository né test. Inizia individuando la documentazione e l’implementazione dell’attributo Order, quindi esamina la copertura dei test correlati; il lavoro è completo quando il comportamento dell’ultimo ordine e la sua interazione con i test non ordinati sono documentati e verificati.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
While having the order attribute is great for tests that need to run first / or in a given order, it would be great to also have an attribute for running specific tests last.
Our solution looks like this:
[Test, Order(1)]
public void TestA() { ... }
[Test, Order(2)]
public void TestB() { ... }
[Test]
public void TestC() { ... }
[Test, {shouldRunLast in order(1)}]
public void TestD()
We have some quick integration tests which should run first. We have "normal" tests which don't have the order attribute and we have some very long running tests that should run last.
You can see that it would be a problem to give all "normal" tests an arbitrary order number just so the long running tests are ran last. A "LastOrder(n)" attribute would be appreciated.
- Lingua principale
- Dockerfile
- Stelle
- 601
- Fork
- 159
- Merge medio
- 22h 18m
- PR unite (30g)
- 6
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nunit/docs
-
area:adapter type:newpage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
Document why output from ASP.NET Core handlers (WebApplicationFactory) is not captured, and the workaroundsForse già presa @SeanKilleen l’ha presa 36 giorni fa. Apertaarea:framework type:update
Difficoltà 2/5 1-3 ore Idoneità per principianti 83/100
-
type:newpage
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Dependency DashboardAperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 15/100
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
mike-north/AgentMonitors#715 ·
I maintainer di solito rispondono entro 1 giorno
-
milestone-3
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
Harsha0912/recall#71 ·
I maintainer di solito rispondono entro 1 giorno
-
The SIGKILL escalation test passes without escalation when its child starts later than 100 msApertabug:new
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
callstackincubator/simlock#1986 ·
I maintainer di solito rispondono entro 1 giorno
-
bug difficulty:1
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
MakazhanAlpamys/Soup#3532 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 79/100