Figured it out: had to add this to my build.gradle
spoon {
if (project.hasProperty('spoonClassName')) {
className = project.spoonClassName
}
}
Then run tests with this:
gradle spoon -PspoonClassName=com.espresso.websosket.StressTest