packer-plugin-goss icon indicating copy to clipboard operation
packer-plugin-goss copied to clipboard

Specify Results directory

Open la7eralus opened this issue 1 year ago • 6 comments

Hello, thanks for this useful provisioner. Is there a way to save the testresults in a file so that I can later upload it to my CI/CD Environment? It can deal pretty good with junit output, and would also give me statistics about each tests runtime.

Best regards :-)

la7eralus avatar May 17 '24 12:05 la7eralus

Hi,

I had the same idea and started working on it. Only problem was getting it to work on windows as well. On linux I could use tee to redirect the output to a file. Im not aware there is a command for that on windows… Or we accept that the feature is only available on linux systems ..

FalcoSuessgott avatar May 17 '24 13:05 FalcoSuessgott

Wow, that was blazing fast. I don't want to be selfish (;-)), but I think its a good idea to publish the feature for all OSes that can easily be supported. Other OSes might follow when someone with Windows Know-How steps by.

la7eralus avatar May 17 '24 13:05 la7eralus

I can publish what I have so far and then we could update the docs accordingly stating that this option only works for linux/macos based systems :)

FalcoSuessgott avatar May 17 '24 13:05 FalcoSuessgott

I am definitely interested in this as well, I would love to be able to capture the output to add it to CI job reporting!

wazoo avatar Jun 07 '24 15:06 wazoo

This is timely.

I was just looking at a way to make it so that the Goss testing output wasn't simply piped to stdout.

This improvement should allow me to easily configure the output file as an artifact to be uploaded to our build pipeline's artifacts section.

Is there anything I can do to assist in getting these two relevant PRs merged and released?

mattlorimor avatar Jul 04 '24 18:07 mattlorimor

Also, @FalcoSuessgott, Windows/Powershell has Tee-Object.

mattlorimor avatar Jul 04 '24 18:07 mattlorimor

👋🏽 Little bump here! :)

It would be VERY usefull!

diraol avatar Nov 09 '24 19:11 diraol