Error when trying to generate the documentation
I wanted to update the generated documentation after adding new Test Cases and I got the following error:
ngsi-ld-test-suite on feature/tcs-post-1_4 [$!?] via 🐍 v3.11.7 (.venv)
➜ python3 doc/generateDocumentationData.py TP/NGSI-LD
Traceback (most recent call last):
File "/Users/bobeal/egm/dev/datahub/ngsi-ld-test-suite/doc/generateDocumentationData.py", line 58, in <module>
resulting_json = create_json_of_robotfile(robot_file_tbp)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bobeal/egm/dev/datahub/ngsi-ld-test-suite/doc/generateDocumentationData.py", line 35, in create_json_of_robotfile
data = GenerateRobotData(robot_file=robot_file, execdir=folder_test_suites)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bobeal/egm/dev/datahub/ngsi-ld-test-suite/doc/analysis/generaterobotdata.py", line 14, in __init__
self.suite = TestSuiteBuilder().build(robot_file)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bobeal/egm/dev/datahub/ngsi-ld-test-suite/.venv/lib/python3.11/site-packages/robot/running/builder/builders.py", line 152, in build
paths = self._normalize_paths(paths)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bobeal/egm/dev/datahub/ngsi-ld-test-suite/.venv/lib/python3.11/site-packages/robot/running/builder/builders.py", line 170, in _normalize_paths
paths = [Path(normpath(p)).absolute() for p in paths]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/bobeal/egm/dev/datahub/ngsi-ld-test-suite/.venv/lib/python3.11/site-packages/robot/running/builder/builders.py", line 170, in <listcomp>
paths = [Path(normpath(p)).absolute() for p in paths]
^^^^^^^^^^^
File "<frozen posixpath>", line 391, in normpath
TypeError: expected str, bytes or os.PathLike object, not NoneType