logging - How to use Gradle Logger? -
import org.gradle.api.logging.logger
import org.gradle.api.logging.logging
in spock test
package com.example.dummies
import org.gradle.api.logging.logger
import org.gradle.api.logging.logging
import spock.lang.specification
class dummyclasstest extends specification {
file dir = new file("c:/users/results") dummyclass var logger log def setup() { log = logging.getlogger(dummyclasstest.class) var= new dummyclass(dir) } def ' test'() { log.info("--------------------------------------------------->hi") expect: var.gettdir() == dir } }
my test passes when write
gradle test -i
but message not in console output. problem?
Comments
Post a Comment