1 2 3 4 5 6 7 8 9 10 11
package cmd import ( "testing" "github.com/stretchr/testify/assert" ) func TestVersion(t *testing.T) { assert.Contains(t, execute(command{args: []string{"version"}}, t, nil), "vespa version 0.0.0-devel compiled with") }