[Bug]: --exactly flag does not return a non zero exit code when it should fail

Aperta
#1,897 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 5 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
laravel, php
Ambito
cli, testing-qa

Direzione di ricerca

Start by reproducing the issue in a fresh Laravel application with php artisan test --coverage --exactly=100, then inspect how the --exactly coverage option determines the command exit status. Done means the command returns a non-zero exit code when coverage is below 100%, while preserving the expected behavior when it reaches 100%.

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

Descrizione

bug
What Happened

When I run my tests and provide the --exactly flag, which I have set to 100, the exit code is 0 even when the code coverage is not 100%. From what I understand this should be a non-zero exit code.

How to Reproduce

Create a fresh laravel application. The example tests are enough to see the issue. Run php artisan test --coverage --exactly=100. Then check the exit code echo $?.

Sample Repository

No response

Pest Version

5.1.3

PHP Version

8.4

Operation System

macOS

Notes

No response

Lingua principale
PHP
Stelle
11.8k
Fork
559
Merge medio
5g 23h
PR unite (30g)
24

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 pestphp/pest

Tutte le issue di pestphp/pest

Issue simili

Altre issue su PHP

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.