How to set a testing environment?

You can keep the selected environment as uno and use the testing sidebar to run tests for native without switching.
grafik

You can also disable tests in the uno environment using test_filter per this.