Hi,
I guess that's basically what BATS do, it uses Node to parse the test cases
line by line, then executes the command using bash and captures stdout, stderr
and exit-code. It further fails a test on exit-code>0 or if an assert based on
output fails. Not impossible to implement in Java/Junit,
Funny, I was currently looking for a solution to make the bats tests run on
Windows.
I would probably prefer a JUnit approach that executes the commands with
ProcessBuilder and avoid that way additional dependencies and test frameworks.
We would also avoid having duplicate tests.
I considered
Hi,
We have done tons of changes to start scripts lately, but we do not have any
automated tests like our BATS tests for Linux.
So I filed https://issues.apache.org/jira/browse/SOLR-17508 with a suggestion
to use a tool I found called "Pester" for Powershell.
I played a bit with it and got a fe