One way to easily integrate your automated tests is by using the xUnit XML output of your test runner.

You can learn more about how xUnit reports are used with Xray in Taking advantage of xUnit XML Reports.

We have some simple yet detailed tutorials explaining how to integrate several testing frameworks used in some programming languages, so you can see how automated tests are mapped from your code to Jira.