---
title: "[Xray] Test Coverage is not working after Deleting and/or Replacing Xray's \"Tests\" Link Type"
canonical: "https://docs.getxray.app/space/ProductKB/141918234/%5BXray%5D%20Test%20Coverage%20is%20not%20working%20after%20Deleting%20and%2For%20Replacing%20Xray's%20%22Tests%22%20Link%20Type"
format: markdown
---
## Problem

Tests are not added to the Test coverage or the Test Coverage Calculations are not properly done for added Tests. 

This happens after the "Tests" Link Type is deleted and/or replaced with another Link Type. 

---

## Description

During the Installation process, a default "Tests" Link Type is created by Xray. This Link Type is the one used to associated the Test Work items with the Requirement Work items for Test Coverage.

> ℹ️ <u>**The Xray installed Link Type shouldn't be deleted or replaced by any other Link Type.**</u>

## Solution

To solve this problem, we need to re-install the Xray Link Type. 

We can do this by following these Steps: 

1. Navigate to *Jira Administration >> Manage Apps >> Atlassian MarketPlace >>Manage Apps >> Xray.*
2. Disable the Xray App.
3. Enable back again the Xray App.
  1. A re-index may be necessary when re-enabling the App.
4. Verify that the "Tests" Link Type now exists.
  1. Navigate to Jira Administration >> Work items >> Work item features >> Work item linking.
5. Once the Xray "Tests" Link Type is restored, we need to associate our Tests to our Requirement Work items using this Link Type.


## Related articles

> Macro (contentbylabel)