Hi,
Below is part my gradle config for a test project. The project structure has been changed as src/test/java to support allure report.
def commonTestConfiguration = {
useTestNG()
/* classpath = files(
sourceSets.main.runtimeClasspath,
sourceSets.main.compileClasspath
)*/
testClassesDir = sourceSets.test.output.classesDir [---> throws error when using gradle 5]
outputs.upToDateWhen { false }
testLogging {
// Shows the status of the tests in the command-line output
events 'started', 'passed', 'failed', 'standardOut', 'standardError'
exceptionFormat 'full'
}
}
task runContinuousIntegrationInChrome(type: Test, dependsOn: check) {
configure commonTestConfiguration
options.suites "src/test/resources/testng_continuousintegration_chrome.xml"
}
Getting error as ClassesDir has been deprecated. Am not sure how it needs to be modified.
Kindly let me know, how it should be changed to make it run with gradle 5
Thanks,
Kuzhali
--
You received this message because you are subscribed to the Google Groups "gradle-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to gradle-dev+...@googlegroups.com.
To post to this group, send email to gradl...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/gradle-dev/90e8b2fd-a1f7-43ec-938a-171d21d0911e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Sterling Greene
Lead Software Engineer
Gradle
W. gradle.com