I run it with bats hello_world_test.sh, and the console output is this:
✗ Say Hi!
(in test file hello_world_test.sh, line 8)
`[[ $status -eq 0 ]]' failed
In my opinion it would be very nice if the test described WHY it has failed.
For the example above, I would think a good error message would be something like, "Expected output to be "Hello, World!", but received, "Hello Worldy!"
Hi!
Here's a simple example of my code:
and then the bats test:
I run it with
bats hello_world_test.sh
, and the console output is this:In my opinion it would be very nice if the test described WHY it has failed.
For the example above, I would think a good error message would be something like, "Expected output to be "Hello, World!", but received, "Hello Worldy!"
Thanks! ❤️