mirror of
https://github.com/kairos-io/immucore.git
synced 2025-09-14 06:01:25 +00:00
🐛 Fix coverage (#76)
Signed-off-by: Itxaka <itxaka.garcia@spectrocloud.com>
This commit is contained in:
@@ -43,7 +43,7 @@ test:
|
|||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
RUN go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
|
RUN go install -mod=mod github.com/onsi/ginkgo/v2/ginkgo
|
||||||
COPY . .
|
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
|
SAVE ARTIFACT coverage.out AS LOCAL coverage.out
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
package tests
|
package utils_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
@@ -9,5 +9,5 @@ import (
|
|||||||
|
|
||||||
func TestSuite(t *testing.T) {
|
func TestSuite(t *testing.T) {
|
||||||
RegisterFailHandler(Fail)
|
RegisterFailHandler(Fail)
|
||||||
RunSpecs(t, "Test Suite")
|
RunSpecs(t, "Utils test Suite")
|
||||||
}
|
}
|
@@ -1,4 +1,4 @@
|
|||||||
package tests
|
package utils_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/containerd/containerd/mount"
|
"github.com/containerd/containerd/mount"
|
@@ -1,4 +1,4 @@
|
|||||||
package tests
|
package mount_test
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
13
pkg/mount/suite_test.go
Normal file
13
pkg/mount/suite_test.go
Normal 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")
|
||||||
|
}
|
Reference in New Issue
Block a user