Hi Peter

I'm trying to write from a java class that's not a test class.  It's a
utility class that scans test base for testng annotated tests, in order to
print tests belonging to a specified group.  This class is located in
src/testUtil/java as opposed to the tests located in src/test/java.  I don't
see any output from the class execution.  My build.gradle has the following
entries (among others):

test.testLogging.showStandardStreams = true

// compile for util
configurations{
    testUtilCompile.extendsFrom testCompile
}

sourceSets {
    testUtil {
        java {
            srcDir 'src/testUtil/java'
        }
    }
}

task listTests(type:JavaExec){
    main = "testUtil.java.TestGroupScanner"
    classpath = sourceSets.testUtil.runtimeClasspath
    systemProperty '--testbase', '../../test/java'
    if (project.hasProperty("group")){
        args group
    }
}

No output appears on the command line.


--
View this message in context: 
http://gradle.1045684.n5.nabble.com/Getting-stdout-messages-on-command-line-tp5709858p5709867.html
Sent from the gradle-user mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply via email to