name.remal.test-settings
Plugin class: name.remal.gradle_plugins.plugins.testing.TestSettingsPlugin
plugins {
id 'name.remal.test-settings' version '1.5.0'
}
plugins {
id("name.remal.test-settings") version "1.5.0"
}
This plugin:
- For all
AbstractTestTask
tasks:- Turn ON all reports.
- Show exceptions in logs.
- Show causes in logs.
- Show stacktraces in logs.
- Use
FULL
exception format. - Use only
GROOVY
stacktrace filter. - Log only
FAILED
andSTANDARD_ERROR
events by default. - Log all events for
INFO
log level.
- For all
Test
tasks:- Enable assertions
- Set
junit.jupiter.extensions.autodetection.enabled
system property totrue
. - Setup test framework based on classpath (if framework hasn't been set yet):
- If the tasks's classpath has
org.junit.jupiter:*
ororg.junit.vintage:*
explicitly set dependencies, thenJUnitPlatform
is used. - If the tasks's classpath has a class with package name
org.junit.jupiter.engine
, thenJUnitPlatform
is used. - If the tasks's classpath has
junit:junit
explicitly set dependency, thenJUnit
is used. - If the tasks's classpath has
org.junit.Test
class, thenJUnit
is used. - If the tasks's classpath has
org.testng:testng
explicitly set dependency, thenTestNG
is used. - If the tasks's classpath has
org.testng.annotations.Test
class, thenTestNG
is used.
- If the tasks's classpath has