Package org.gradle.api.tasks.testing.junit

# Class JUnitOptions

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

public abstract class JUnitOptions extends TestFrameworkOptions
The JUnit specific test options.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JUnitOptions()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `copyFrom(JUnitOptions other)`
  Copies the options from the source options into the current one.
  `JUnitOptions`
  `excludeCategories(String... excludeCategories)`
  `abstract SetProperty<String>`
  `getExcludeCategories()`
  The set of categories to exclude.
  `abstract SetProperty<String>`
  `getIncludeCategories()`
  The set of categories to run.
  `JUnitOptions`
  `includeCategories(String... includeCategories)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## 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 abstract SetProperty<String> getIncludeCategories()
    The set of categories to run.

  - ### getExcludeCategories

    @Input public abstract SetProperty<String> getExcludeCategories()
    The set of categories to exclude.