Add test.bats

This commit is contained in:
Sven van Heugten 2026-02-22 07:07:26 +01:00
parent 9fb8507056
commit 144ef949cf
No known key found for this signature in database
GPG key ID: D612F88666F4F660
2 changed files with 13 additions and 0 deletions

View file

@ -10,6 +10,9 @@ trim_trailing_whitespace = true
[git-check-assertions] [git-check-assertions]
indent_size = 2 indent_size = 2
[*.bats]
indent_size = 2
[*.nix] [*.nix]
indent_size = 2 indent_size = 2

10
test.bats Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env bats
setup() {
DIR="$( cd "$( dirname "$BATS_TEST_FILENAME" )" >/dev/null 2>&1 && pwd )"
PATH="$DIR:$PATH"
}
@test "can run" {
git-check-assertions
}