I know how to say
gradle test --tests mypackage.MyTest
but how to specify more than one?
gradle test --tests mypackage.MyTest,mypackage.model.ModelTest,BasicTests
This seemed to just run one of the tests at random.
gradle test --tests mypackage.MyTest mypackage.model.ModelTest BasicTests
This tells me
Task 'mypackage.model.ModelTest' not found in root project 'myproject'.
I read to a lot of manuals and tutorials (and a few SO posts) and found no explicit mention of the answer. But I saw someone passing --tests "somepackage.*" as an argument, so I figured that quotes around the spaces might help.
gradle test --tests "mypackage.MyTest mypackage.model.ModelTest BasicTests"
This does not fail fast, but unfortunately runs only the first test in the list.
So I guess that I have just been mislead by the plural in "--tests" and there is no way to actually give it a list, right?