Files
httprunner/hrp/internal/scaffold/examples_test.go
2022-05-28 12:08:15 +08:00

32 lines
559 B
Go

package scaffold
import (
"testing"
)
func TestGenDemoExamples(t *testing.T) {
dir := "../../../examples/demo-with-go-plugin"
err := CreateScaffold(dir, Go, true)
if err != nil {
t.Fatal()
}
dir = "../../../examples/demo-with-py-plugin"
err = CreateScaffold(dir, Py, true)
if err != nil {
t.Fatal()
}
dir = "../../../examples/demo-without-plugin"
err = CreateScaffold(dir, Ignore, true)
if err != nil {
t.Fatal()
}
dir = "../../../examples/demo-empty-project"
err = CreateScaffold(dir, Empty, true)
if err != nil {
t.Fatal()
}
}