[GRADLE-2722] binResultsDir is a required field in test task starting in 1.4 Created: 25/Mar/13  Updated: 02/Feb/17  Resolved: 02/Feb/17

Status: Resolved
Project: Gradle
Affects Version/s: 1.4
Fix Version/s: None

Type: Bug
Reporter: William Lichtenberger Assignee: Unassigned
Resolution: Fixed Votes: 1

Attachments: Text File exception.txt    

 Description   

I wrote a custom task of type 'Test' and works in versions 1.1-1.3, but when run with version 1.4 of gradle, I now get the error message:

  • What went wrong:
    A problem was found with the configuration of task ':runIntegrationTests'.
    > No value has been specified for property 'binResultsDir'.

Attached is the full stack trace of the exception.



 Comments   
Comment by William Lichtenberger [ 25/Mar/13 ]

Work around is a simple one: adding the following line to the test task

binResultsDir = file("$buildDir/binary-results/")

But that causes a warning if gradle version is 1.3 or below.

Comment by Benjamin Muschko [ 15/Nov/16 ]

As announced on the Gradle blog we are planning to completely migrate issues from JIRA to GitHub.

We intend to prioritize issues that are actionable and impactful while working more closely with the community. Many of our JIRA issues are inactionable or irrelevant. We would like to request your help to ensure we can appropriately prioritize JIRA issues you’ve contributed to.

Please confirm that you still advocate for your JIRA issue before December 10th, 2016 by:

  • Checking that your issues contain requisite context, impact, behaviors, and examples as described in our published guidelines.
  • Leave a comment on the JIRA issue or open a new GitHub issue confirming that the above is complete.

We look forward to collaborating with you more closely on GitHub. Thank you for your contribution to Gradle!

Comment by Benjamin Muschko [ 02/Feb/17 ]

I don't see this behavior anymore with Gradle 3.3 for the following example build script:

apply plugin: 'groovy'

sourceSets {
    integrationTest {
        groovy.srcDir file('src/integTest/groovy')
        resources.srcDir file('src/integTest/resources')
        compileClasspath += sourceSets.main.output + configurations.testRuntime
        runtimeClasspath += output + compileClasspath
    }
}

task integrationTest(type: Test) {
    testClassesDir = sourceSets.integrationTest.output.classesDir
    classpath = sourceSets.integrationTest.runtimeClasspath
}
Generated at Wed Jun 30 12:29:43 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.