# Package org.gradle.api.tasks.testing.source

@NullMarked package org.gradle.api.tasks.testing.source
Defines different test sources that can be associated to tests. The test source data is serialized from the test worker to the daemon. The class hierarchy is meant to mirror the one in the JUnit Platform (see `org.junit.platform.engine.TestSource`), but applies to any kind of test.

- Related Packages
  Package
  Description
  org.gradle.api.tasks.testing
  The unit testing `Task` implementations.
  org.gradle.api.tasks.testing.junit
  JUnit specific testing classes.
  org.gradle.api.tasks.testing.junitplatform
  org.gradle.api.tasks.testing.logging
  Types related to logging of test related information to the console.
  org.gradle.api.tasks.testing.testng
  TestNG specific testing classes.
- Interfaces
  Class
  Description
  ClasspathResourceSource
  Classpath resource-based test source.
  ClassSource
  Class-based test source.
  DirectorySource
  Directory-based test source.
  FilePosition
  Position inside a file represented by line and column numbers.
  FileSource
  A test source defined by a single file.
  FilesystemSource
  Filesystem-based test source.
  MethodSource
  Method-based test source.
  NoSource
  The test engine did not declare any sources for the test at all.
  OtherSource
  The test engine declared a test source not recognized by Gradle.
  TestSource
  Representation of the source of a test or container used to navigate to its location by IDEs and build tools.