docs: enter WC live

This commit is contained in:
debugtalk
2022-11-27 00:16:02 +08:00
parent 21b57ac70a
commit 446e37236a
6 changed files with 130 additions and 27 deletions

View File

@@ -1,11 +1,7 @@
//go:build localtest
package main
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestConvertTimeToSeconds(t *testing.T) {
testData := []struct {
timeStr string
@@ -26,6 +22,16 @@ func TestConvertTimeToSeconds(t *testing.T) {
}
}
func TestMain(t *testing.T) {
main()
func TestMainIOS(t *testing.T) {
device := initIOSDevice()
wc := NewWorldCupLive(device, "", "com.ss.iphone.ugc.Aweme", 30, 10)
wc.Start()
wc.DumpResult()
}
func TestMainAndroid(t *testing.T) {
device := initAndroidDevice()
wc := NewWorldCupLive(device, "", "com.ss.android.ugc.aweme", 30, 10)
wc.Start()
wc.DumpResult()
}