I answer my own Question. There is a much better way for Unittests than via XML-Export. When you add "Projection <yourNameHere> As %Projection.Java" then you get Java-Wrapper for your Classes. And so you can use JUnit (or similiar things) to write unittests . Additionally you can automate the Tests.
Yes, same as with studio, Caché supports Unit Tests. Documentation.
Yes, i know. Do you really mean that i have to export the Unittests via <File> -> <Export> ? That would be complicated but ok.
You can ran them from a terminal.
I answer my own Question. There is a much better way for Unittests than via XML-Export. When you add "Projection <yourNameHere> As %Projection.Java" then you get Java-Wrapper for your Classes. And so you can use JUnit (or similiar things) to write unittests . Additionally you can automate the Tests.