See all validation errors at once with something liike assertsSoftly { ... }

Aperta
#97 1 commento 1 reazione 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
github-actions, kotlin
Ambito
ci-cd, devops

Direzione di ricerca

Start at the workflow() entry point and review the linked Kotest soft-assertions documentation for the requested behavior. The issue names no files or tests, so trace how workflow validation currently reports failures. Done means one workflow run can report all validation errors instead of stopping at the first one.

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

Descrizione

enhancement

What feature do you need?

From https://kotest.io/docs/assertions/soft-assertions.html:

Normally, assertions like shouldBe throw an exception when they fail. But sometimes you want to perform multiple assertions in a test, and would like to see all of the assertions that failed. Kotest provides the assertSoftly function for this purpose.

assertSoftly {
  foo shouldBe bar
  foo should contain(baz)
}

It would be nice to have something like assertSoftly inside the workflow() function
so that we could see all validation errors for the workflow at once,
instead of having to do a compilation-run cycle for each one.

Lingua principale
Kotlin
Stelle
664
Fork
30
Merge medio
4g 19h
PR unite (30g)
5

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di typesafegithub/github-workflows-kt

Tutte le issue di typesafegithub/github-workflows-kt

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.