Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
trimble opened this issue Mar 25, 2022 · 0 comments
Open

Comments

@trimble
Copy link

trimble commented Mar 25, 2022

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?

@trimble trimble changed the title Add options for condensing/expanding results output Add options for condensing/expanding output when using "text" format Mar 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant