# \-Dtest.single doesn't work when test tasks is in buildSrc

**URL:** <https://discuss.gradle.org/t/dtest-single-doesnt-work-when-test-tasks-is-in-buildsrc/2485>\
**Category:** Old Forum Archive\
**Created:** [October 20, 2011, 12:50pm UTC](https://discuss.gradle.org/t/dtest-single-doesnt-work-when-test-tasks-is-in-buildsrc/2485 "2011-10-20T12:50:00Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![luke\_daley](https://sea1.discourse-cdn.com/gradle/user_avatar/discuss.gradle.org/luke_daley/32/9890_2.png) [@luke\_daley](https://discuss.gradle.org/u/luke_daley)\
**Post date:** [October 20, 2011, 1:59pm UTC](https://discuss.gradle.org/t/dtest-single-doesnt-work-when-test-tasks-is-in-buildsrc/2485/2 "2011-10-20T13:59:00Z")

</div>

This is the same as GRADLE-1553.

You’re missing the leading “:” prefix on the task path. So you need to invoke with as…

```gradle
gradle -D:subproject:seleniumTest.single=MyTest

```

I’ll update the instructions on the ticket.

We’re aware that this is a little cumbersome, and will be improved in the future.

---

_[View the full topic](https://discuss.gradle.org/t/dtest-single-doesnt-work-when-test-tasks-is-in-buildsrc/2485)._
