Skip to content

Commit 3b613e7

Browse files
committed
test(gen:main): retry e2e tests twice
1 parent ae514e1 commit 3b613e7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: src/test/main.test.js

+8
Original file line numberDiff line numberDiff line change
@@ -136,10 +136,12 @@ describe('angular-fullstack:app', function() {
136136

137137
if(!process.env.SKIP_E2E) {
138138
it('should run e2e tests successfully', function() {
139+
this.retries(2);
139140
return runCmd('grunt test:e2e').should.be.fulfilled();
140141
});
141142

142143
it('should run e2e tests successfully for production app', function() {
144+
this.retries(2);
143145
return runCmd('grunt test:e2e:prod').should.be.fulfilled();
144146
});
145147
}
@@ -258,10 +260,12 @@ describe('angular-fullstack:app', function() {
258260

259261
if(!process.env.SKIP_E2E) {
260262
it('should run e2e tests successfully', function() {
263+
this.retries(2);
261264
return runCmd('grunt test:e2e').should.be.fulfilled();
262265
});
263266

264267
it('should run e2e tests successfully for production app', function() {
268+
this.retries(2);
265269
return runCmd('grunt test:e2e:prod').should.be.fulfilled();
266270
});
267271
}
@@ -334,10 +338,12 @@ describe('angular-fullstack:app', function() {
334338

335339
if(!process.env.SKIP_E2E) {
336340
it('should run e2e tests successfully', function() {
341+
this.retries(2);
337342
return runCmd('grunt test').should.be.fulfilled();
338343
});
339344

340345
it('should run e2e tests successfully for production app', function() {
346+
this.retries(2);
341347
return runCmd('grunt test:e2e:prod').should.be.fulfilled();
342348
});
343349
}
@@ -411,10 +417,12 @@ describe('angular-fullstack:app', function() {
411417

412418
if(!process.env.SKIP_E2E) {
413419
it('should run e2e tests successfully', function() {
420+
this.retries(2);
414421
return runCmd('grunt test:e2e').should.be.fulfilled();
415422
});
416423

417424
it('should run e2e tests successfully for production app', function() {
425+
this.retries(2);
418426
return runCmd('grunt test:e2e:prod').should.be.fulfilled();
419427
});
420428
}

0 commit comments

Comments
 (0)