Cannot run testng xml files with packages

I tried this with gradle 1.2 and 1.3. I have a testng file which specifies packages:

<test name="Smoke Tests" parallel="methods" thread-count="5">
        <packages>
            <package name="com.api" />
        </packages>
    </test>
</suite>

This version with classes + groups works

<test name="smoke Tests" parallel="methods" thread-count="5">
        <classes>
            <class name="com.api.ListsTests"/>
        </classes>
    </test>

Has anyone gotten packages+groups to work in a testng xml file with gradle?

What’s the error message/stack trace, and what’s in the logs?

The output looks like the normal testng runtime output, except that no tests are run. It finds the suite, but reports no tests are run.

I opened a gradle jira for this: http://issues.gradle.org/browse/GRADLE-2623

It appears that this also effects the groups tag.

The behaviour is exactly the same. No tests run. If you specify a class, the classes run.