I have written about 70 tests in nightwatch and many of them depend on each other, therefore they will have to be executed in a certain order, order that I will define. Each test is in a different file and it looks like this:
module.exports = {
'Test name example': function (browser) {
browser
// test
}
};
I want to know what is the best way to run these tests in an order that I like? Is there a way to create a "mother-file", where you import/require all the written tests and then execute them in the order of your liking? From what I searched online, one solution is: "to prefix each test file with a number indicating the order you want them to be run in" from How can I run Nightwatch tests in a specific order?, or to use "--testcase" as shown in How to run a single test in nightwatch, but I want to know if these are all the posibilities out there.