INNER CODE UNIT · Go
TestBatsTests
asdf-vm/asdf · cmd/asdf/main_test.go:15
func TestBatsTests(t *testing.T) {
dir := t.TempDir()
// Build asdf and put in temp directory
buildAsdf(t, dir)
// Run tests with the asdf binary in the temp directory
t.Run("set_command", func(t *testing.T) {
runBatsFile(t, dir, "set_command.bats")
})
t.Run("current_command", func(t *testing.T) {
runBatsFile(t, dir, "current_command.bats")
})
t.Run("help_command", func(t *testing.T) {
runBatsFile(t, dir, "help_command.bats")