Run imageupload unit-tests in parallel
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+load("@kubevirt//tools/ginkgo:ginkgo.bzl", "ginkgo_test")
go_library(
name = "go_default_library",
@@ -30,6 +31,7 @@ go_test(
"imageupload_suite_test.go",
"imageupload_test.go",
],
+ tags = ["cov"],
deps = [
":go_default_library",
"//staging/src/kubevirt.io/client-go/generated/containerized-data-importer/clientset/versioned/fake:go_default_library",
@@ -50,3 +52,10 @@ go_test(
"//vendor/kubevirt.io/containerized-data-importer/pkg/apis/core/v1alpha1:go_default_library",
],
)
+
+ginkgo_test(
+ name = "go_parallel_test",
+ ginkgo_args = ["-p"],
+ go_test = ":go_default_test",
+ tags = ["nocov"],
+)
