mirror of
https://github.com/httprunner/httprunner.git
synced 2026-07-06 23:11:21 +08:00
30 lines
507 B
Go
30 lines
507 B
Go
package build
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
)
|
|
|
|
func TestRun(t *testing.T) {
|
|
err := Run("examples/debugtalk_no_funppy.py", "")
|
|
if !assert.Nil(t, err) {
|
|
t.Fatal()
|
|
}
|
|
|
|
err = Run("examples/debugtalk_no_fungo.go", "")
|
|
if !assert.Nil(t, err) {
|
|
t.Fatal()
|
|
}
|
|
|
|
err = Run("examples/debugtalk_no_funppy.py", "./debugtalk.py")
|
|
if !assert.Nil(t, err) {
|
|
t.Fatal()
|
|
}
|
|
|
|
err = Run("examples/debugtalk_no_fungo.go", "./debugtalk_gen.bin")
|
|
if !assert.Nil(t, err) {
|
|
t.Fatal()
|
|
}
|
|
}
|