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
You can use process.emit('SIGINT') in this case. Answer from Andrey Belym