How to exclude unit testing module and unit tests from release deployment package ?

How to exclude the unit testing module and microflow unit tests from the release deployment package? Will there be a performance impact if we include these unit tests and unit testing modules in the release package? How to integrate these unit tests with pipeline?  
1 answers
  1. I am not aware of any way to exclude the unit testing module from production deployment. But you can hide the page from non admins (or any roles you like). And you can disable the API by setting  UnitTesting.RemoteApiEnabled to false.
  2. I do not think that it will impact performance.
  3. You can execute the unit tests via REST (POST http://localhost:8080/unittests/start)

See also