Run unit tests on demand

By default, ‘arc diff’ runs unit tests based on the test engine defined. How can I configure it in such a way that the unit tests are not run by default and will only be run with a flag (e.g. arc diff —unit)?

You can’t, but you can create an alias for arc diff --nounit, call it arc mydiff, and use that.
Run arc help alias for details.