> For the complete documentation index, see [llms.txt](https://quash.gitbook.io/quash-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://quash.gitbook.io/quash-documentation/test-studio/saving-generated-tests.md).

# Saving Generated Tests

When Megumi generates test cases in a session, they live in the Tests panel until you decide what to do with them. You have two options: save them to your Test Cases library, or add them directly to a suite. Understanding the difference matters — the choice affects how reusable and organised your tests are long-term.

### The two options

<figure><img src="https://752090225-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhoGlOS0eqN560gbwRZtT%2Fuploads%2FgAYbVvPzmJz2TK8ZE6Ee%2Fimage.png?alt=media&amp;token=4aa6c064-f4b3-412b-bd44-09a3c2477a29" alt=""><figcaption></figcaption></figure>

#### Save to Test Cases (recommended)

Saving to the Test Cases library adds your generated tests to a central repository at the workspace level. From there, they can be added to any number of suites, searched and filtered, edited, and reused across different projects and sprints.

**Use this when:**

* You are building a test library over time
* The tests might be used in more than one suite
* You want to organise, tag, and maintain tests centrally
* You are working on a feature that will have ongoing test coverage

**How:**

1. In the Tests panel, select the tests you want — individually or using **Select all**
2. Click **Save to Test Cases**
3. Tests appear in the Test Cases library immediately

#### Add to Suite (faster)

Adding directly to a suite skips the library and places the tests straight into a specific suite, ready to run.

**Use this when:**

* You know exactly which suite these tests belong to
* The tests are for immediate, one-off execution
* Speed matters more than long-term organisation

**How:**

1. In the Tests panel, select the tests you want
2. Click **+ Add to Suite**
3. Choose an existing suite or create a new one
4. Tests are immediately added and ready to run

### Which to choose

If you are unsure, save to Test Cases. You can always add library tests to a suite later — it takes seconds. The reverse is harder: tests added directly to a suite without going through the library are harder to find, reuse, and maintain.

| Situation                                  | Recommended        |
| ------------------------------------------ | ------------------ |
| Building comprehensive coverage over time  | Save to Test Cases |
| Tests will be used in multiple suites      | Save to Test Cases |
| Working on a long-running feature          | Save to Test Cases |
| Running a quick one-off test immediately   | Add to Suite       |
| Specific suite needs these tests right now | Add to Suite       |
| Prototyping or exploring coverage          | Add to Suite       |

### Selecting tests before saving

You do not have to save everything Megumi generates. Review the Tests panel before saving.

* Click the **checkbox** on individual cards to select specific tests
* Click **Select all** at the top to grab everything
* The selected count appears at the bottom — e.g., "3 selected"
* Click **Clear** to deselect without saving

Review names, priorities, and descriptions before saving. If something needs adjustment, use a follow-up prompt to fix it in the session first, then save.

### After saving

Once tests are in the library, you can:

* Add them to any suite from the Test Cases list
* Edit instructions, expected results, priority, or type
* Tag them for filtering and organisation
* View which suites currently include them before making changes
* Export them for use in other tools

Tests saved from a recipe carry the name, priority, and description assigned during generation. You can edit any of these fields directly in the Test Cases library.
