0

I've splitted my project from one huge test to a few smaller to speed up tests and avoid some errors. Is there any way to run all of them parallel with single conf file? I must pass through login.js before every testcase specs: ['login.js', 'test1.js'],

1 Answers1

0

I suggest changing your login.js spec into a file which exports a login function. Then create a beforeAll in your onPrepare in your conf. This will be executed before every describe block, which in your case is every test.

onPrepare: function {
    beforeAll(function(){
        loginToApp();           
    });
};

I know you have already split up the files but I would seriously consider using the page object model to structure your tests if you have the time.

DublinDev
  • 2,318
  • 2
  • 8
  • 31