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 and STANDARD_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 to true.
    • Setup test framework based on classpath (if framework hasn't been set yet):
      • If the tasks's classpath has org.junit.jupiter:* or org.junit.vintage:* explicitly set dependencies, then JUnitPlatform is used.
      • If the tasks's classpath has a class with package name org.junit.jupiter.engine, then JUnitPlatform is used.
      • If the tasks's classpath has junit:junit explicitly set dependency, then JUnit is used.
      • If the tasks's classpath has org.junit.Test class, then JUnit is used.
      • If the tasks's classpath has org.testng:testng explicitly set dependency, then TestNG is used.
      • If the tasks's classpath has org.testng.annotations.Test class, then TestNG is used.