goss-org / goss

Quick and Easy server testing/validation
https://goss.rocks
Apache License 2.0
5.5k stars 470 forks source link

Json output format doesn't print skipped count in summary section #812

Closed sandeepsharmadevops closed 1 year ago

sandeepsharmadevops commented 1 year ago

Describe the bug

I am using goss/dgoss to test the Dockerfile, using JSON format to print execution detail. But in the JSON output, we don't get the skipped count details in the summary section, rather skipped details are printed in individual test cases sections.

Total Duration: 0.004s
Count: 9, Failed: 0, Skipped: 3

How To Reproduce

Change the output format to json and then to documentation.

Expected Behavior

Should be able to get skipped count in the json output summary section likewise getting in other spported formats.

Actual Behavior

Environment:

Let me know in case of an otherwise situation, or else guide me in the right direction.

Thanks!!!

sandeepsharmadevops commented 1 year ago

created this PR, please review and merge it if it makes sense. Thanks!!

https://github.com/goss-org/goss/pull/813/files

aelsabbahy commented 1 year ago

Closed by #813