tests: switch to bats-core

This switches from the older, unmaintained version of bats to one that _is_ maintained. In particular, this fork of the community version - bats-core/bats-core - adds junit timing support, which can be used to track down slow tests.

Once the bats-core/bats-core repository merges junit support, we will switch back to upstream.

Note that tests on OS X will still run using a version that _does not_ have junit timing support.
This commit is contained in:
Jose Diaz-Gonzalez
2018-12-29 04:16:58 -05:00
parent 03ed58600c
commit 7ed7202c67
5 changed files with 21 additions and 16 deletions

View File

@@ -41,14 +41,14 @@ teardown() {
assert_success
}
@test "(certs) certs:add < tar" {
@test "(certs) certs:add tar:in" {
run /bin/bash -c "dokku certs:add $TEST_APP < $BATS_TEST_DIRNAME/server_ssl.tar"
echo "output: $output"
echo "status: $status"
assert_success
}
@test "(certs) certs:add < tar should ignore OSX hidden files" {
@test "(certs) certs:add tar:in should ignore OSX hidden files" {
run /bin/bash -c "dokku certs:add $TEST_APP < $BATS_TEST_DIRNAME/osx_ssl_tarred.tar"
echo "output: $output"
echo "status: $status"