mirror of
https://github.com/cupcakearmy/autorestic.git
synced 2026-04-06 05:39:18 +00:00
ai testing
This commit is contained in:
14
tests/version_test.go
Normal file
14
tests/version_test.go
Normal 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")
|
||||
}
|
||||
Reference in New Issue
Block a user