Created
February 20, 2011 21:16
-
-
Save breskeby/836316 to your computer and use it in GitHub Desktop.
run the same test multiple times with gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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){ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.