Is it somehow possible to initialize the test environment with nightwatch before running tests? Also closing it after tests would be necessary.
This feature seems so basic that I'm having a hard time to understand whether there's no such feature in nightwatch or I'm I just missing something.
Is there a way to run asynchronous tasks in setUp and tearDown methods?
My use case is basically just that I want to run my server, drop database and create fixture data before tests are run and close the server when nightwatch is finished with the tests. Can you give me an example how this is done?