On Thu, 24 Jan 2019 at 10:21, Diego Russo Diego.Russo@arm.com wrote:
Hello list,
Apologies if this question has been asked already. I have a test framework which spits out a junit file. What’s the best way to import data from the junit file into LAVA?
LAVA currently only supports creating test results as a LAVA Test Case. You will need to wrap the test in a script which parses the output and calls lava-test-case (if using a POSIX shell). There are libraries for various languages which can read in Junit. Alternative methods have been suggested but support is not likely to arrive soon.
Alternatively you would have to rely on pattern matching the output to identify the test case ID and the test case result (a bit like the monitors test action support). These are difficult to get right and can be problematic in use.
https://master.lavasoftware.org/static/docs/v2/lava_test_shell.html#parse-pa...
Cheers
-- Diego Russo | Staff Software Engineer | Mbed Linux OS ARM Ltd. CPC1, Capital Park, Cambridge Road, Fulbourn, CB21 5XE, United Kingdom http://www.diegor.co.uk - https://os.mbed.com/linux-os/
IMPORTANT NOTICE: The contents of this email and any attachments are confidential and may also be privileged. If you are not the intended recipient, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. Thank you. _______________________________________________ Lava-users mailing list Lava-users@lists.lavasoftware.org https://lists.lavasoftware.org/mailman/listinfo/lava-users