[tests] Add a diag function to debug bats tests + ignore directories created by tests
For the diag function, thanks to @waterkip see https://github.com/bats-core/bats-core/issues/186
Edited by Nicolas Quiniou-Briand
For the diag function, thanks to @waterkip see https://github.com/bats-core/bats-core/issues/186