Xray does import the Test Status found in a JUnit XML report file.

It is however necessary to have XML elements in the JUnit report stating errors, failures, etc. like the example below.

Also, please check our documentation for details on how Xray handles the JUnit status information, here.

JUnit failure and error example
(...)
        <testcase classname="ModuleIAmTesting" name="testIsNotStorming" time="1">
            <failure message="Test testIsNotStorming() failed!" type="failure">
                Another failure. Failure output, details, etc.
            </failure>
        </testcase>

        <testcase classname="ModuleIAmTesting" name="testCreatePlugin" time="2">
            <error message="Error while executing test testCreatePlugin()!" type="error">
                Unhandled catastrophic exception in ModuleIAmTesting.cpp at like 4420, details, etc.
            </error>
        </testcase>
(...)