Description
For big projects build phase could take noticeable amount of time if user tries to cancel test generation at the moment UBTot still proceeds with test generation.
To Reproduce
Steps to reproduce the behavior:
- Open utbot project
- Invoke test generation on some class, on
org.utbot.examples.strings.StringExamples for example
- Quickly click on cancel while UTBot still at building phase

Expected behavior
Generation of tests stopped
Actual behavior
UTBot stops (or try to stop building) but then procced with reading classes and test generation.
Description
For big projects build phase could take noticeable amount of time if user tries to cancel test generation at the moment UBTot still proceeds with test generation.
To Reproduce
Steps to reproduce the behavior:
org.utbot.examples.strings.StringExamplesfor exampleExpected behavior
Generation of tests stopped
Actual behavior
UTBot stops (or try to stop building) but then procced with reading classes and test generation.