[GRADLE-863] Execute test suites in libs / different directories Created: 24/Mar/10  Updated: 03/Feb/17  Resolved: 03/Feb/17

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

Type: Improvement
Reporter: Lars Heuer Assignee: Unassigned
Resolution: Won't Fix Votes: 8

Issue Links:
Related to GRADLE-2654 gradle can run tests from jars Resolved


It's not possible to execute a test suite within a jar in addition to the project's test suite:

The test task will only scan a single directory for tests. There's no good reason for it to not scan multiple directories or to not scan jars, we just haven't implemented it.

Comment by Nicholas Russell [ 10/Aug/12 ]

Does anyone have any news on the state of this improvement?

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 Gerwin Jansen [ 30/Nov/16 ]

I still face this issue and hope it can be fixed.

Comment by Benjamin Muschko [ 03/Feb/17 ]

I don't quite understand the setup you have in place here. Do you separate production code and test code into different VCS repositories? In order to run the tests you'll have to build the JAR containing the tests? If that's the case then you can easily fulfill the requirement by using composite builds.

I won't go ahead and create an issue for this on GitHub. Please open an issue on GitHub if you think this is crucial to your organization. When opening the issue please explicitly describe your setup and organization of code.

Generated at Wed Jun 30 11:40:53 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.