Attempting to clean up these loglevels on ProjectBuilder but they just won't set

Need to work with somebody in the Gradle community to figure out why these
Project fixtures won't use anything other than DEBUG level logging
This commit is contained in:
R. Tyler Croy 2015-08-14 12:27:38 -07:00
parent 4d340fc42c
commit 8c3ea3fd26
No known key found for this signature in database
GPG Key ID: 1426C7DC3F51E16F
2 changed files with 25 additions and 9 deletions

View File

@ -62,8 +62,8 @@ codenarc {
test {
testLogging {
showStandardStreams = true
exceptionFormat "full"
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}

View File

@ -7,6 +7,8 @@ import org.gradle.api.Project
import org.gradle.api.Task
import org.gradle.testfixtures.ProjectBuilder
import static org.gradle.api.logging.LogLevel.*
class JRubyStormSpec extends Specification {
protected Project project
@ -50,7 +52,7 @@ class JRubyStormSpec extends Specification {
def "runTask should be a type of JRubyStormLocal"() {
given:
Task spock = project.task('spock', type: JRubyStorm) {
topology 'spock.rb'
topology 'spock.rb'
}
Task runTask = project.tasks.findByName('runSpock')
@ -106,12 +108,20 @@ class JRubyStormSpec extends Specification {
then:
project.configurations.findByName(JRubyStorm.DEFAULT_CONFIGURATION_NAME)
}
}
@Ignore("For some reason these are running with DEBUG log level and it won't turn off")
class JRubyStormProjectSpec extends Specification {
Project project
def setup() {
project = ProjectBuilder.builder().build()
project.with {
apply plugin: 'com.github.jruby-gradle.storm'
}
}
def "evaluation of the project should result in an assemble and run task"() {
given:
Project project = ProjectBuilder.builder().build()
project.apply plugin: 'com.github.jruby-gradle.storm'
when:
project.evaluate()
@ -120,10 +130,13 @@ class JRubyStormSpec extends Specification {
project.tasks.findByName('runJRubyStorm')
}
@Ignore
def "evaluation of the project should result in dependencies being added to the configuration"() {
given:
Project project = ProjectBuilder.builder().build()
project.apply plugin: 'com.github.jruby-gradle.storm'
project.with {
apply plugin: 'com.github.jruby-gradle.storm'
}
JRubyStorm task = project.task('spock', type: JRubyStorm)
def deps = task.configuration.dependencies
@ -134,10 +147,13 @@ class JRubyStormSpec extends Specification {
deps.matching { Dependency d -> d.name == 'redstorm' }
}
@Ignore
def "evaluation of the project should result in local mode dependencies"() {
given:
Project project = ProjectBuilder.builder().build()
project.apply plugin: 'com.github.jruby-gradle.storm'
project.with {
logging.level = INFO
apply plugin: 'com.github.jruby-gradle.storm'
}
JRubyStorm task = project.task('spock', type: JRubyStorm)
when: