# Getting Started

#### Execute the Smallest Subset of Tests – Without Compromising Quality

SeaLights Test Optimization revolutionizes your testing strategy by identifying the essential tests needed to validate your code changes. This intelligent approach significantly slashes testing timelines by **50% to 90%** and reduces resource expenses by **up to 70%**, enhancing the efficiency of both automated and manual testing efforts.

By analyzing the delta between your previous and current code versions, SeaLights identifies exactly which tests are impacted by code changes. Instead of running a full regression suite for every minor update, Test Optimization allows you to execute only the necessary subset of tests required to ensure complete coverage of the modified areas. This data-driven approach moves away from "blind" testing and toward "smart" testing, where the test execution is dynamically tailored to the code actually written.

{% embed url="<https://youtu.be/OsZomeTkmzY?si=xXvnCJ7qpPUTQAUi>" %}

### Why It Is Useful

Traditional testing cycles are often the biggest bottleneck in the DevOps pipeline. Test Optimization solves this by:

* **Slashing Execution Time:** Reduce testing timelines by $50\\%$ to $90\\%$ by skipping irrelevant tests and focusing on impacted areas.
* **Optimizing Resource Usage:** Decrease infrastructure and cloud resource costs by up to $70\\%$, significantly lowering the overhead of CI/CD.
* **Accelerating Time-to-Market:** Faster feedback loops mean developers can merge and deploy code significantly quicker.
* **Improving Developer Experience:** Engineers receive validation on their specific changes in minutes rather than hours, maintaining their focus and momentum.

### Detailed Functionality

SeaLights provides specialized optimization workflows for different testing scenarios:

{% tabs %}
{% tab title="Automated Test Optimization" %}
For your CI/CD pipelines, SeaLights integrates directly with your test runners (e.g., JUnit, Selenium, Cucumber, PyTest).

* **How it works:** The SeaLights agent analyzes the code changes and the historical mapping of tests to code. It then provides the test runner with a dynamic list of "Required Tests".
* **Key Benefit:** It eliminates the need to manually partition test suites or maintain complex tagging systems for "smoke" vs "regression" tests.
  {% endtab %}

{% tab title="Manual Test Optimization" %}
Optimization isn't just for machines. SeaLights provides a **Manual Test Planner** for QA teams handling human-led testing efforts.

* **How it works:** When a new deployment is ready, SeaLights generates a prioritized list of manual test cases that cover the modified code. This allows QA engineers to focus their limited time on the areas with the highest risk of regression.
* **Key Benefit:** Ensures that manual testing effort is always aligned with the most recent development work, preventing wasted effort on stable code.
  {% endtab %}

{% tab title="Pull Request (PR) Optimization" %}
SeaLights enables "Shift-Left" testing by bringing optimization into the code review stage.

* **How it works:** As soon as a developer opens a PR, SeaLights calculates the minimum tests needed to validate that specific branch. This subset can be triggered automatically before the code is even merged into the main branch.
* **Key Benefit:** Identifies bugs at the earliest possible stage, before they impact the main codebase or other developers.
  {% endtab %}
  {% endtabs %}

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="image">Cover image</th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>How It Works?</strong></td><td>Explore the underlying technology of Test Optimization. Understand how SeaLights maps your application's code structure to your test suites, identifies code changes and generates test recommendations.</td><td><a href="/files/bif5CAcljDiH374XfUkQ">/files/bif5CAcljDiH374XfUkQ</a></td><td><a href="/pages/fAGQ5R6XwPy1SW5iYnbQ">/pages/fAGQ5R6XwPy1SW5iYnbQ</a></td></tr><tr><td><strong>Optimization Strategy</strong></td><td>Learn how to best select your testing strategy. Master the different options to balance maximum speed with absolute quality, and discover how the various advanced options to customize test optimization to your needs.</td><td><a href="/files/ezmEwHekQeCsKHhsRNvN">/files/ezmEwHekQeCsKHhsRNvN</a></td><td><a href="/pages/gmMftH1unhMLdXYTyk0K">/pages/gmMftH1unhMLdXYTyk0K</a></td></tr><tr><td><strong>Optimization Savings</strong></td><td>Dive into the SeaLights monthly savings reports to track your ROI. Monitor key metrics such as <strong>Testing Time Saved</strong> and <strong>Saved Test Count</strong>, and learn how to use these insights to further refine your testing efficiency.</td><td><a href="/files/Iy5JD7YdE3gRygwRc7If">/files/Iy5JD7YdE3gRygwRc7If</a></td><td><a href="/pages/Ah7MoYCgSv7Fm1g8iv9B">/pages/Ah7MoYCgSv7Fm1g8iv9B</a></td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.sealights.io/knowledgebase/test-optimization/getting-started.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
