I tried with the sample build.xml and the latest Migration toolkit.
I checked further the runAllTests=True and seems to run all test classes also the ones from a managed package. There is a post here Get Status Updates When Running Tests with ANT Migration ToolĪnd here How to run tests in the default namespace in a sandbox using Antīut both don't really answer the question if the actually works in ant or not. Then i found 2 other posts that are talking about the sf:compileAndTest method in ant where you can specify but this doesn't seem to work either. Now i searched on the documentation of the tool and i only find the runAllTests = true, which runs all tests including managed package code. I would like to configure the ant migration tool so that only test classes are run that we own so no managed package classes.