Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Add options for condensing/expanding output when using "text" format

Abierto
#302 0 comentarios 1 reacción 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
25/100
Tipo de issue
Nueva funcionalidad
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
go
Área
cli, testing

Línea de trabajo

Comienza localizando la implementación del formato de salida "text" actual y revisando cómo se representan los resultados de las pruebas. Define los niveles de verbosidad compatibles y su salida esperada utilizando los ejemplos Standard, Compact, Quiet y, posiblemente, verbose del issue; se considera terminado cuando la opción seleccionada produce de forma consistente el formato acordado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

When using CST in a CI/CD environment, it would be nice to have multiple options for verbosity of results output. The current "text" format output is informative but noisy in passing cases. Sometimes a "pass-quiet, fail-noisy" option would be nice to have.

I'm still thinking about these, and am certainly open to suggestion, but as conversation starters...I could imagine a few levels of verbosity:

Standard (the current output):


=========================================
====== Test file: example-cst.yaml ======
=========================================
=== RUN: File Existence Test: whoami
--- PASS
duration: 0s
=== RUN: File Existence Test: whatami
--- FAIL
duration: 0s
Error: Error examining file in container: Error retrieving file from container: API error (404): Could not find the file /usr/bin/whatami in container 291dffd038c6843ff4e11bfda3f0cbe075e253b9e0756c94359e18137a564ba0
=== RUN: Metadata Test
--- PASS
duration: 0s

=========================================
================ RESULTS ================
=========================================
Passes:      2
Failures:    1
Duration:    0s
Total tests: 3

FAIL

Compact:

====== Test file: example-cst.yaml ======
.F.

Failures:
File Existence Test: whatami
Error: Error examining file in container: Error retrieving file from container: API error (404): Could not find the file /usr/bin/whatami in container 291dffd038c6843ff4e11bfda3f0cbe075e253b9e0756c94359e18137a564ba0

Passes:      2
Failures:    1
Duration:    0s
Total tests: 3

FAIL

Quiet:

====== Test file: example-cst.yaml ======
Passes:      2
Failures:    1
Duration:    0s
Total tests: 3

FAIL

...and maybe one called "verbose" or "debug" or similar that actually adds info to the current output...like echoing each command run?

Lenguaje dominante
Go
Estrellas
2.5k
Forks
213
Métricas de merge de PR
Sin PR fusionados en 30 d

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de GoogleContainerTools/container-structure-test

Todos los issues de GoogleContainerTools/container-structure-test

Issues similares

Más issues de Go

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.