feat: Adding support for Windows testing (#3037)

Signed-off-by: Owen Rumney <owen.rumney@aquasec.com>
Signed-off-by: knqyf263 <knqyf263@gmail.com>
Co-authored-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
Owen Rumney
2022-12-22 20:54:18 +00:00
committed by GitHub
parent b00f3c60f6
commit 5190f9566b
75 changed files with 1413 additions and 1423 deletions

View File

@@ -4,6 +4,7 @@ import (
"context"
"os"
"path/filepath"
"runtime"
"testing"
"github.com/stretchr/testify/assert"
@@ -16,6 +17,10 @@ import (
)
func TestManager_Register(t *testing.T) {
if runtime.GOOS == "windows" {
// WASM tests difficult on Windows
t.Skip("Test satisfied adequately by Linux tests")
}
tests := []struct {
name string
noModuleDir bool