github.com/nevalang/neva@v0.23.1-0.20240507185603-7696a9bb8dda/e2e/hello_world_with_literal_sender/e2e_test.go (about) 1 package test 2 3 import ( 4 "os/exec" 5 "testing" 6 7 "github.com/stretchr/testify/require" 8 ) 9 10 func Test(t *testing.T) { 11 cmd := exec.Command("neva", "run", "main") 12 13 out, err := cmd.CombinedOutput() 14 require.NoError(t, err) 15 16 require.Equal( 17 t, 18 "Hello, World!\n", 19 string(out), 20 ) 21 22 require.Equal(t, 0, cmd.ProcessState.ExitCode()) 23 }