I'd like to have a BATS test created for every file in a directory, but I'm not sure what the best way to get this done is. The approach below only creates a single test even when there are many files in the directory.
#!/usr/bin/env bats
for i in ./*;do
@test "testing $i" {
pwd
}
done
How about this?