ai testing

This commit is contained in:
2026-04-05 23:21:42 +02:00
parent 9cf919b42b
commit 82fc2c9191
8 changed files with 346 additions and 4 deletions

14
tests/version_test.go Normal file
View File

@@ -0,0 +1,14 @@
package integration_test
import (
"github.com/stretchr/testify/assert"
"os/exec"
"testing"
)
func TestVersion(t *testing.T) {
cmd := exec.Command("go", "run", "../main.go", "--version")
out, err := cmd.CombinedOutput()
assert.NoError(t, err)
assert.Contains(t, string(out), "autorestic")
}