Search code examples
testingautomationautomated-testse2e-testingtestcafe

How to cancel tests execution if you don't get a url from process.env


In the runner class, I can do Cancelling Test Tasks. How do I cancel test execution if I don't use the runner class? I need to do it from my code. If env variable is not provided then exit tests Thanks


Solution

  • You can use process.emit('SIGINT') in this case. Answer from Andrey Belym