Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow testlogger to be configured independently for each task #90

Closed
radarsh opened this issue Oct 18, 2018 · 0 comments
Closed

Allow testlogger to be configured independently for each task #90

radarsh opened this issue Oct 18, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@radarsh
Copy link
Owner

radarsh commented Oct 18, 2018

Test logger should be configurable for each task (of type Test of course) independently. So if a project has multiple test tasks, they should be able define different values. A typical example:

testlogger {
    theme 'standard' // global
}

test {
    maxParallelForks = 8
    testlogger {
        theme 'standard-parallel' // use a parallel theme
    }
}

task functionalTest(type: Test) {
    maxParallelForks = 1 // no parallelisation
    testlogger {
        theme 'mocha'
        slowThreshold 10000 // as my functional tests are normally slow
    } 
    
    include 'com/adarshr/gradle/testlogger/functional/**'
}

Currently testlogger can only be configured globally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant