🐛 Fix coverage (#76)

Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
Itxaka
2023-03-02 19:33:11 +01:00
committed by GitHub
parent fecfbf8e92
commit 167cf5fa0d
5 changed files with 18 additions and 5 deletions

View File

@@ -43,7 +43,7 @@ test:
WORKDIR /build
RUN go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
COPY . .
RUN ginkgo run --race --fail-fast --slow-spec-threshold 30s --covermode=atomic --coverprofile=coverage.out -p -r ./...
RUN ginkgo run --race --covermode=atomic --coverprofile=coverage.out -p -r ./...
SAVE ARTIFACT coverage.out AS LOCAL coverage.out
lint:

View File

@@ -1,4 +1,4 @@
package tests
package utils_test
import (
"testing"
@@ -9,5 +9,5 @@ import (
func TestSuite(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Test Suite")
RunSpecs(t, "Utils test Suite")
}

View File

@@ -1,4 +1,4 @@
package tests
package utils_test
import (
"github.com/containerd/containerd/mount"

View File

@@ -1,4 +1,4 @@
package tests
package mount_test
import (
"context"

13
pkg/mount/suite_test.go Normal file
View File

@@ -0,0 +1,13 @@
package mount_test
import (
"testing"
. "github.com/onsi/ginkgo/v2"
. "github.com/onsi/gomega"
)
func TestSuite(t *testing.T) {
RegisterFailHandler(Fail)
RunSpecs(t, "Mount test Suite")
}