Report scenarios that are filtered out by unmet requirements

Aperta
#392 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
70/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
php, wordpress
Ambito
ci-cd, testing

Direzione di ricerca

Locate the PHP code in the test runner that filters scenarios by @require-* tags. Add a pre-run step listing excluded scenarios with their unmet requirements, and a strict mode flag that halts instead of skipping. Validate changes using the existing tag-filtering tests and CI job summary output.

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

Descrizione

scope:testing

Scenarios that cannot run in the current environment are filtered out through tags (@require-php-*, @require-wp-*, @require-mysql, @require-extension-*, OS tags and so on). This happens silently: nothing in the output says which scenarios were left out or why, so a green run can hide missing coverage.

Steps:

  1. Before the run starts, list every scenario that is filtered out together with the requirement that is not met. On CI, add the list to the job summary.
  2. Add a strict mode that stops before the run when a requirement is not met, instead of filtering. CI and the container runner can use it, because there a missing requirement is a problem with the environment and should be fixed rather than skipped.
Lingua principale
PHP
Stelle
42
Fork
28
Merge medio
17h 14m
PR unite (30g)
11

Preparare l'ambiente

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 wp-cli/wp-cli-tests

Tutte le issue di wp-cli/wp-cli-tests

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.