Skip to content

Undetaching Tests

When an import no longer finds an automated test in your source code, Testomat.io marks the test as Detached.

The test stays in your project. If the test is still needed, you can Undetach it and remove the Detached state.

Each test has a state that shows how it is used:

StateWhat it means
ManualThe test is run manually and is not connected to automation code.
AutomatedThe test is connected to automation code imported into Testomat.io.
DetachedThe test was imported before, but the latest import did not find it in the source code.

For example, a change in your automation project can cause an imported test to become Detached. The test is still there, so you can decide what to do with it.

If an import detached many tests, you can restore them all at once.

  1. Go to the Tests page.
  2. Open the Detached tab.
  3. Click Undetach tests in the banner.

The Undetach tests banner on the Tests page filtered by Detached

Testomat.io removes the Detached state from all detached tests in the project.

The banner also offers Delete detached tests. Use it only when the tests are gone from your source code for good - it removes them instead of restoring them.

If only one suite needs to be restored:

  1. Open the suite with detached tests.
  2. Click the (...) menu in the top-right corner.
  3. Click Clear “Detached” state.

Undetach option in the suite menu

All detached tests in the suite are restored.

To restore just one test:

  1. Open the detached test.
  2. Click the (...) menu in the top-right corner.
  3. Click Clear “Detached” state.

The Detached state is removed from the test.