Not intentionally :)
However you could try something nasty like setting the Active Scan "Delay When Scanning (In Milliseconds)" to 5 mins (which would mean a 5 min wait inbetween _every_ request) and then after 5 mins unsetting it again. I'm not sure if that will be applied dynamically but its worth a try...
Attacking an app while unit tests are running is likely to break the unit tests.
My recommendation is to run the unit tests as tests on there own, then run them again with ZAP Attack mode on but ignoring failures, if you can do that.
Cheers,
Simon