Comparing Polyspace BF results from different projects

4 次查看(过去 30 天)
The way my CI is currently setup is that it creates a new project per branch. What I want is to compare the result of two branches using the polyspace-access export command. I tried downloading the result from one project and uploading it to the other but it failed.

回答(1 个)

Manikanta Aditya
Manikanta Aditya 2025-1-2
编辑:Manikanta Aditya 2025-1-2
To compare Polyspace Bug Finder (BF) results from different projects using the polyspace-access export command, you can follow these steps:
  • Export Results from Both Projects: Use the polyspace-access command to export the results from both projects to TSV (tab-separated values) files. For example:
polyspace-access -export -project myProject1 -output results1.tsv
polyspace-access -export -project myProject2 -output results2.tsv
  • Read and Compare Results in MATLAB: Load the TSV files into MATLAB and compare the results
results1 = readtable('results1.tsv', 'FileType', 'text');
results2 = readtable('results2.tsv', 'FileType', 'text');
comparison = outerjoin(results1, results2, 'MergeKeys', true, 'Keys', 'ID');
disp(comparison);
Refer to this documentation to know more about opening and exporting results from Polyspace Access:
I hope this helps.
  1 个评论
Ahmed
Ahmed 2025-1-7
Hi @Manikanta Aditya,
Thank you for your response. I was looking for an automated solution because I’m implementing this as part of my CI pipeline. I’ll explore ways to compare TSV files automatically, but if you know of any other methods that might be more suitable, please let me know.

请先登录,再进行评论。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by