mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-02 06:19:34 +08:00
feat: add har2case command
This commit is contained in:
24
har2case/main_test.go
Normal file
24
har2case/main_test.go
Normal file
@@ -0,0 +1,24 @@
|
||||
package har2case
|
||||
|
||||
import (
|
||||
"log"
|
||||
"os"
|
||||
"testing"
|
||||
)
|
||||
|
||||
var harPath string
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
harPath = "demo.har"
|
||||
|
||||
// run all tests
|
||||
code := m.Run()
|
||||
defer os.Exit(code)
|
||||
|
||||
// teardown
|
||||
}
|
||||
|
||||
func TestGenJSON(t *testing.T) {
|
||||
jsonPath, err := NewHAR(harPath).GenJSON()
|
||||
log.Printf("jsonPath: %v, err: %v", jsonPath, err)
|
||||
}
|
||||
Reference in New Issue
Block a user