Report scenarios that are filtered out by unmet requirements

Aberta
#392 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
70/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
php, wordpress
Domínio
ci-cd, testing

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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.
Linguagem predominante
PHP
Estrelas
42
Forks
28
Merge médio
17h 14min
PRs com merge (30d)
11

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de wp-cli/wp-cli-tests

Todas as issues de wp-cli/wp-cli-tests

Issues semelhantes

Mais issues de PHP

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.