Skip to content

Commit d074f8b

Browse files
iQQBotroboquat
authored andcommitted
[integration-test] mark test failed if no robotquat token provided
1 parent 3e81f52 commit d074f8b

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

test/tests/ide/jetbrains/gateway_test.go

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -185,11 +185,11 @@ func JetBrainsIDETest(ctx context.Context, t *testing.T, cfg *envconf.Config, id
185185
}
186186

187187
func TestGoLand(t *testing.T) {
188-
if roboquatToken == "" {
189-
t.Skip("this test need github action run permission")
190-
}
191188
integration.SkipWithoutUsername(t, username)
192189
integration.SkipWithoutUserToken(t, userToken)
190+
if roboquatToken == "" {
191+
t.Fatal("this test need github action run permission")
192+
}
193193
f := features.New("Start a workspace using GoLand").
194194
WithLabel("component", "IDE").
195195
WithLabel("ide", "GoLand").
@@ -204,11 +204,11 @@ func TestGoLand(t *testing.T) {
204204
}
205205

206206
func TestIntellij(t *testing.T) {
207-
if roboquatToken == "" {
208-
t.Skip("this test need github action run permission")
209-
}
210207
integration.SkipWithoutUsername(t, username)
211208
integration.SkipWithoutUserToken(t, userToken)
209+
if roboquatToken == "" {
210+
t.Fatal("this test need github action run permission")
211+
}
212212
f := features.New("Start a workspace using Intellij").
213213
WithLabel("component", "IDE").
214214
WithLabel("ide", "Intellij").
@@ -223,11 +223,11 @@ func TestIntellij(t *testing.T) {
223223
}
224224

225225
func TestPhpStorm(t *testing.T) {
226-
if roboquatToken == "" {
227-
t.Skip("this test need github action run permission")
228-
}
229226
integration.SkipWithoutUsername(t, username)
230227
integration.SkipWithoutUserToken(t, userToken)
228+
if roboquatToken == "" {
229+
t.Fatal("this test need github action run permission")
230+
}
231231
f := features.New("Start a workspace using PhpStorm").
232232
WithLabel("component", "IDE").
233233
WithLabel("ide", "PhpStorm").
@@ -242,11 +242,11 @@ func TestPhpStorm(t *testing.T) {
242242
}
243243

244244
func TestPyCharm(t *testing.T) {
245-
if roboquatToken == "" {
246-
t.Skip("this test need github action run permission")
247-
}
248245
integration.SkipWithoutUsername(t, username)
249246
integration.SkipWithoutUserToken(t, userToken)
247+
if roboquatToken == "" {
248+
t.Fatal("this test need github action run permission")
249+
}
250250
f := features.New("Start a workspace using Pycharm").
251251
WithLabel("component", "IDE").
252252
WithLabel("ide", "Pycharm").
@@ -261,11 +261,11 @@ func TestPyCharm(t *testing.T) {
261261
}
262262

263263
func TestRubyMine(t *testing.T) {
264-
if roboquatToken == "" {
265-
t.Skip("this test need github action run permission")
266-
}
267264
integration.SkipWithoutUsername(t, username)
268265
integration.SkipWithoutUserToken(t, userToken)
266+
if roboquatToken == "" {
267+
t.Fatal("this test need github action run permission")
268+
}
269269
f := features.New("Start a workspace using RubyMine").
270270
WithLabel("component", "IDE").
271271
WithLabel("ide", "RubyMine").
@@ -280,11 +280,11 @@ func TestRubyMine(t *testing.T) {
280280
}
281281

282282
func TestWebStorm(t *testing.T) {
283-
if roboquatToken == "" {
284-
t.Skip("this test need github action run permission")
285-
}
286283
integration.SkipWithoutUsername(t, username)
287284
integration.SkipWithoutUserToken(t, userToken)
285+
if roboquatToken == "" {
286+
t.Fatal("this test need github action run permission")
287+
}
288288
f := features.New("Start a workspace using WebStorm").
289289
WithLabel("component", "IDE").
290290
WithLabel("ide", "WebStorm").

0 commit comments

Comments
 (0)