Skip to content

Instantly share code, notes, and snippets.

@breskeby
Created February 20, 2011 21:16
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save breskeby/836316 to your computer and use it in GitHub Desktop.
Save breskeby/836316 to your computer and use it in GitHub Desktop.
run the same test multiple times with gradle
class LoadTest extends Test{
private numberOfClients = 2
public LoadTest(){
super()
}
public FileTree getCandidateClassFiles() {
FileTree candidateTimes = super.getCandidateClassFiles()
for(int client = 1; client<numberOfClients;client++){
candidateTimes = candidateTimes + super.getCandidateClassFiles()
}
return candidateTimes
}
}
task loadTest(type:LoadTest){
}
@thokari
Copy link

thokari commented Nov 20, 2018

This doesn't work, at least with Gradle 4.7 it does not, because adding the same file to a FileTree is not doing anything, because a FileTree behaves like a Set, eliminating duplicates.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment