javascript - How to run same test file twice in protractor? -


i have situation want run same test file twice. let's have test1.js , login.js , define suite in such way in configuration:

specs: [     'test1.js',     'login.js',     'test1.js' ] 

so can see want run test1.js twice, protractor runs test1.js, login.js , finishes. have idea how can achieve this?

regards adam

protractor globbing of specs file patterns list of tests should run, there's no way make work via list of specs. instead use node's require organize tests:

// in configuration file specs: [   'thetest.js' ]  // thetest.js require('test1.js')(); require('login.js')(); require('test1.js')();  // test1.js module.exports = function() {   describe(...) }; 

Comments

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -