mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-07 00:39:34 +08:00
30 lines
511 B
Go
30 lines
511 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_gen.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()
|
|
}
|
|
}
|