Class JUnitOptions

java.lang.Object
org.gradle.api.tasks.testing.TestFrameworkOptions
org.gradle.api.tasks.testing.junit.JUnitOptions

public class JUnitOptions extends TestFrameworkOptions
The JUnit specific test options.
  • Constructor Details

    • JUnitOptions

      public JUnitOptions()
  • Method Details

    • copyFrom

      public void copyFrom(JUnitOptions other)
      Copies the options from the source options into the current one.
      Since:
      8.0
    • includeCategories

      public JUnitOptions includeCategories(String... includeCategories)
    • excludeCategories

      public JUnitOptions excludeCategories(String... excludeCategories)
    • getIncludeCategories

      @Input public Set<String> getIncludeCategories()
      The set of categories to run.
    • setIncludeCategories

      public void setIncludeCategories(Set<String> includeCategories)
      The set of categories to run.
    • getExcludeCategories

      @Input public Set<String> getExcludeCategories()
      The set of categories to exclude.
    • setExcludeCategories

      public void setExcludeCategories(Set<String> excludeCategories)
      The set of categories to exclude.