@@ -24,7 +24,9 @@ import (
24
24
25
25
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/color"
26
26
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/config"
27
+ "github.com/GoogleContainerTools/skaffold/pkg/skaffold/constants"
27
28
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/docker"
29
+ eventV2 "github.com/GoogleContainerTools/skaffold/pkg/skaffold/event/v2"
28
30
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/graph"
29
31
"github.com/GoogleContainerTools/skaffold/pkg/skaffold/logfile"
30
32
latestV1 "github.com/GoogleContainerTools/skaffold/pkg/skaffold/schema/latest/v1"
@@ -74,6 +76,7 @@ func (t FullTester) Test(ctx context.Context, out io.Writer, bRes []graph.Artifa
74
76
return nil
75
77
}
76
78
79
+ eventV2 .TaskInProgress (constants .Test )
77
80
color .Default .Fprintln (out , "Testing images..." )
78
81
79
82
if t .muted .MuteTest () {
@@ -99,7 +102,13 @@ func (t FullTester) Test(ctx context.Context, out io.Writer, bRes []graph.Artifa
99
102
return err
100
103
}
101
104
102
- return t .runTests (ctx , out , bRes )
105
+ if err := t .runTests (ctx , out , bRes ); err != nil {
106
+ eventV2 .TaskFailed (constants .Test , err )
107
+ return err
108
+ }
109
+
110
+ eventV2 .TaskSucceeded (constants .Test )
111
+ return nil
103
112
}
104
113
105
114
func (t FullTester ) runTests (ctx context.Context , out io.Writer , bRes []graph.Artifact ) error {
0 commit comments