I am using v0.3.0.
$ pyedaa-ucis.exe version
========================================================================================================================
UCDB Service Program
========================================================================================================================
Copyright: 2021-2022, Electronic Design Automation Abstraction (EDA▒)
License: Apache License, Version 2.0
Version: v0.3.0
$ pyedaa-ucis.exe export --ucdb sim/coverage/coverage_data.xml --cobertura cobertura.xml --merge-instances
Traceback (most recent call last):
File "C:\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "C:\Python\Python310\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Python\Python310\Scripts\pyedaa-ucis.exe\__main__.py", line 7, in <module>
File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\CLI\__init__.py", line 218, in main
program.Run()
File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\CLI\__init__.py", line 106, in Run
ArgParseMixin.Run(self)
File "C:\Python\Python310\lib\site-packages\pyAttributes\ArgParseAttributes.py", line 297, in Run
self._ParseArguments()
File "C:\Python\Python310\lib\site-packages\pyAttributes\ArgParseAttributes.py", line 309, in _ParseArguments
self._RouteToHandler(args)
File "C:\Python\Python310\lib\site-packages\pyAttributes\ArgParseAttributes.py", line 313, in _RouteToHandler
args.func(self, args)
File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\CLI\__init__.py", line 158, in HandleExport
model = parser.getCoberturaModel()
File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\UCDB.py", line 95, in getCoberturaModel
self._parseStatementCoverage()
File "C:\Python\Python310\lib\site-packages\pyEDAA\UCIS\UCDB.py", line 119, in _parseStatementCoverage
scopes = self._tree.xpath(
File "src\\lxml\\etree.pyx", line 2365, in lxml.etree._ElementTree.xpath
File "src\\lxml\\xpath.pxi", line 342, in lxml.etree.XPathDocumentEvaluator.__call__
File "src\\lxml\\xpath.pxi", line 210, in lxml.etree._XPathEvaluatorBase._handle_result
lxml.etree.XPathEvalError: Undefined namespace prefix
========================================================================================================================
UCDB Service Program
========================================================================================================================
Exporting code coverage information from UCDB file to Cobertura format ...
IN -> UCIS (XML): sim\coverage\coverage_data.xml
OUT <- Cobertura (XML): cobertura.xml
I am using v0.3.0.
When trying to convert my coverage XML to cobertura I get this error:
In case you want to reproduce it, you find my UCDB and XML in coverage_data.zip.
Tool versions: