packer-plugin-goss
packer-plugin-goss copied to clipboard
Specify Results directory
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 :-)
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 ..
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.
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 :)
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!
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?
Also, @FalcoSuessgott, Windows/Powershell has Tee-Object.
👋🏽 Little bump here! :)
It would be VERY usefull!