# Class JUnitPlatformOptions

java.lang.Object
org.gradle.api.tasks.testing.TestFrameworkOptions
org.gradle.api.tasks.testing.junitplatform.JUnitPlatformOptions

public abstract class JUnitPlatformOptions extends TestFrameworkOptions
The JUnit platform specific test options.

Since:
  4.6
See Also:
  - JUnit 5 User Guide

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `JUnitPlatformOptions()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `copyFrom(JUnitPlatformOptions other)`
  Copies the options from the source options into the current one.
  `JUnitPlatformOptions`
  `excludeEngines(String... excludeEngines)`
  The set of engines to exclude.
  `JUnitPlatformOptions`
  `excludeTags(String... excludeTags)`
  The set of tags to exclude.
  `Set<String>`
  `getExcludeEngines()`
  Returns the exclude engines.
  `Set<String>`
  `getExcludeTags()`
  Returns the exclude tags.
  `Set<String>`
  `getIncludeEngines()`
  Returns the include engines.
  `Set<String>`
  `getIncludeTags()`
  Returns the include tags.
  `JUnitPlatformOptions`
  `includeEngines(String... includeEngines)`
  The set of engines to run with.
  `JUnitPlatformOptions`
  `includeTags(String... includeTags)`
  The set of tags to run with.
  `void`
  `setExcludeEngines(Set<String> excludeEngines)`
  Sets the exclude engines.
  `void`
  `setExcludeTags(Set<String> excludeTags)`
  Sets the exclude tags.
  `void`
  `setIncludeEngines(Set<String> includeEngines)`
  Sets the include engines.
  `void`
  `setIncludeTags(Set<String> includeTags)`
  Sets the include tags.

  ### Methods inherited from class Object

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

- ## Constructor Details

  - ### JUnitPlatformOptions

    public JUnitPlatformOptions()

- ## Method Details

  - ### copyFrom

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

  - ### includeEngines

    public JUnitPlatformOptions includeEngines(String... includeEngines)
    The set of engines to run with.
    Since:
      4.6
    See Also:
      - Test Engine

  - ### includeTags

    public JUnitPlatformOptions includeTags(String... includeTags)
    The set of tags to run with.
    Since:
      4.6
    See Also:
      - Tagging and Filtering

  - ### excludeEngines

    public JUnitPlatformOptions excludeEngines(String... excludeEngines)
    The set of engines to exclude.
    Since:
      4.6
    See Also:
      - Test Engine

  - ### excludeTags

    public JUnitPlatformOptions excludeTags(String... excludeTags)
    The set of tags to exclude.
    Since:
      4.6
    See Also:
      - Tagging and Filtering

  - ### getIncludeEngines

    @Input public Set<String> getIncludeEngines()
    Returns the include engines.
    Since:
      4.6

  - ### getIncludeTags

    @Input public Set<String> getIncludeTags()
    Returns the include tags.
    Since:
      4.6

  - ### setIncludeEngines

    public void setIncludeEngines(Set<String> includeEngines)
    Sets the include engines.
    Since:
      4.6

  - ### getExcludeEngines

    @Input public Set<String> getExcludeEngines()
    Returns the exclude engines.
    Since:
      4.6

  - ### setExcludeEngines

    public void setExcludeEngines(Set<String> excludeEngines)
    Sets the exclude engines.
    Since:
      4.6

  - ### setIncludeTags

    public void setIncludeTags(Set<String> includeTags)
    Sets the include tags.
    Since:
      4.6

  - ### getExcludeTags

    @Input public Set<String> getExcludeTags()
    Returns the exclude tags.
    Since:
      4.6

  - ### setExcludeTags

    public void setExcludeTags(Set<String> excludeTags)
    Sets the exclude tags.
    Since:
      4.6