Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <project>/build/reports/tests
- <project>/build/intTest
- <project>/build/reports/test
- <project>/build/reports/intTest
- buildscript {
- repositories {
- jcenter()
- }
- dependencies {
- classpath 'org.unbroken-dome.gradle-plugins:gradle-testsets-plugin:1.2.0'
- }
- }
- apply plugin: 'java'
- apply plugin: 'org.unbroken-dome.test-sets'
- defaultTasks = ['clean', 'build']
- tasks.withType(Test) {
- reports.html.destination = new File(project.reportsDir, name)
- println(it.name + 't' + reports.html.destination)
- }
- task wrapper(type: Wrapper) {
- description = 'Defines the common gradle distribution for this project.'
- gradleVersion = '2.14.1'
- }
- testSets {
- intTest
- }
- intTest.dependsOn test
- check.dependsOn intTest
- repositories {
- jcenter()
- }
- dependencies {
- testCompile 'junit:junit:4.12'
- intTestCompile 'junit:junit:4.12'
- }
- println('===== final config =====')
- println(test.name + 't' + test.reports.html.destination)
- println(intTest.name + 't' + intTest.reports.html.destination)
- $ ls build/
- classes dependency-cache intTest intTest-results libs reports test-results tmp
- $ ls build/reports/
- test
- test /home/wujek/blob/build/reports/test
- intTest /home/wujek/blob/build/reports/intTest
- ===== final config =====
- test /home/wujek/blob/build/reports/test
- intTest /home/wujek/blob/build/intTest
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement