busser-bats icon indicating copy to clipboard operation
busser-bats copied to clipboard

Allow to specify output format for test results

Open sterago opened this issue 10 years ago • 1 comments

The vendor-ed Bats allows to specify the --tap option which shows the test results in TAP format. This is very useful in the context of continuous integration systems, where this kind of output can be easily parsed and interpreted. Are there any plans to support this in busser-bats?

sterago avatar Jul 28 '15 09:07 sterago

If there are no plans to support this, would there be any interest in a PR? Actually, I'm not sure how many layers deep I'd need to go to get this functionality. Since I have no interest in using the default bats behavior, it might make more sense if I just fork the code and change the line in the runner_plugin/bats.rb where bats is called.

EDIT: I ended up not using the kitchen verify step at all. Instead, I installed bats using my test playbook and executed the test suite using kitchen exec. This is not as flexible a solution, but it works well enough for my needs.

artburkart avatar Aug 06 '16 04:08 artburkart