> For the complete documentation index, see [llms.txt](https://docs.sealights.io/knowledgebase/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-build-tools-plugins/sealights-gradle-plugin-1/running-tests-only-json-file.md).

# Core Concepts

SeaLights SBT Plugin uses shared Java Build Tools concepts:

* **Build Scanner:** collects project info and prepares instrumentation
* **Test Listener:** streams test execution to SeaLights
* **Build Session ID:** unique identifier per build
* **Test Stages:** logical grouping of tests (Unit, Integration)
* [**Execution Modes**](#execution-modes)**:** control what runs (full run, scan only, tests only, disabled)

{% hint style="info" %}
See [Java Build Tools Plugins](https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-build-tools-plugins.md) for details on Core Concepts.
{% endhint %}

#### Execution Modes

<table><thead><tr><th width="118.2265625">Mode</th><th>Configuration</th><th>Description</th></tr></thead><tbody><tr><td>Full Run</td><td>default</td><td>Build scan + instrumented tests</td></tr><tr><td>Scan Only</td><td><code>sealightsRunScanOnly := Some(true)</code></td><td>Only run Build Scanner, skip tests</td></tr><tr><td>Tests Only</td><td><code>sealightsRunTestOnly := Some(true)</code></td><td>Reuse previous scan, run tests only</td></tr><tr><td>Disabled</td><td><code>sealightsDisabled := Some(true)</code></td><td>Skip SeaLights integration</td></tr></tbody></table>

{% hint style="info" %}
**Note:** Modes can also be configured in JSON via `executionType` (`scanonly` / `testsonly` / `disabled`).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.sealights.io/knowledgebase/setup-and-configuration/sealights-agents-and-plugins/java-build-tools-plugins/sealights-gradle-plugin-1/running-tests-only-json-file.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
