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 ans/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 Issues with the Requirement Issues for Test Coverage.
The Xray installed Link Type shouldn't be deleted or replaced by any other Link Type.
Solution
To solve this problem, we need to re-install the Xray Link Type.
We can do this by following these Steps:
- Navigate to Jira Administration >> Manage Apps >> Atlassian MarketPlace >>Manage Apps >> Xray.
- Disable the Xray App.
- Enable back again the Xray App.
- A re-index may be necessary when re-enabling the App.
- Verify that the "Tests" Link Type now exists.
- Navigate to Jira Administration >> Issues >> Issue Features >> Issue Linking.
- Once the Xray "Tests" Link Type is restored, we need to associate our Tests to our Requirement Issues using this Link Type.