Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test/system: Simplify running a subset of the tests with Bats >= 1.7.0
The 000-setup.bats and 999-teardown.bats files were added [1] at a time when Bats didn't offer any hooks for suite-wide setup and teardown. That changed in Bats 1.7.0, which introduced the setup_suite and teardown_suite hooks. These hooks make it easier to run a subset of the tests, which is a good thing. In the past, to run a subset of the tests, one had to do: $ bats ./test/system/000-setup.bats ./test/system/002-help.bats \ ./test/system/999-teardown.bats Now, one only has to do: $ bats ./test/system/002-help.bats Commit e22a82f already added a dependency on Bats >= 1.7.0. Therefore, it should be exploited wherever possible to simplify things. [1] Commit 54a2ca1 containers#751 [2] Bats commit fb467ec3f04e322a bats-core/bats-core#39 https://bats-core.readthedocs.io/en/stable/writing-tests.html
- Loading branch information