now using testify/assert

added helper_test

dependencies updated in go.mod file
This commit is contained in:
onyx-and-iris
2022-06-25 01:03:08 +01:00
parent 507a1c6b00
commit e868bf2ef0
4 changed files with 119 additions and 42 deletions

19
tests/helper_test.go Normal file
View File

@@ -0,0 +1,19 @@
package voicemeeter_test
import (
"os"
"testing"
"github.com/onyx-and-iris/voicemeeter-api-go/voicemeeter"
)
var (
vmRem = voicemeeter.NewRemote("banana")
)
func TestMain(m *testing.M) {
vmRem.Login()
code := m.Run()
vmRem.Logout()
os.Exit(code)
}