containerized-data-importer/pkg/controller/common/controller_suite_test.go
akalenyu 817bd6cc3e
Create unit test suite for new folders following refactor (#2518)
Otherwise we skip the tests in these

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>

Signed-off-by: Alex Kalenyuk <akalenyu@redhat.com>
2022-12-23 01:50:32 +00:00

23 lines
527 B
Go

package common_test
import (
"testing"
. "github.com/onsi/ginkgo"
. "github.com/onsi/gomega"
logf "sigs.k8s.io/controller-runtime/pkg/log"
"sigs.k8s.io/controller-runtime/pkg/log/zap"
"kubevirt.io/containerized-data-importer/tests/reporters"
)
var _ = BeforeSuite(func() {
logf.SetLogger(zap.New(zap.WriteTo(GinkgoWriter), zap.UseDevMode(true)))
})
func TestController(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecsWithDefaultAndCustomReporters(t, "Controllers common pkg Suite", reporters.NewReporters())
}