Skip to content

included-files not work #345

@welloncn

Description

@welloncn

cover-agent --source-file-path node/adapter/perception_camera/src/convertors/perception_aggregator/fusion_object_to_msg_convertor.cpp --test-file-path node/senseunittest/fusion_object_to_msg_convertor_unittest.cpp --project-root node --code-coverage-report-path node/build/out_html/coverage.xml --test-command "/home/sensetime/ws/data/thor/thor_arm/senseauto-tools/df_tool/build_and_test_with_coverage.sh node fusion_object_to_msg_convertor_unittest senseauto-perception-camera/node/adapter" --test-command-dir node/build --coverage-type cobertura --desired-coverage 80 --max-iterations 20 --max-run-time-sec 3600 --model deepseek/DeepSeek-V3-Enterprise --additional-instructions "have only the cpp file add test for the cpp file msg full namespace is: senseAD::msg" --included-files adapter/perception_camera/include/message_helper/message_object_label.hpp

2025-07-18 11:39:47,160 - cover_agent.record_replay_manager - INFO - ✨ RecordReplayManager initialized in Run or Replay mode.
2025-07-18 11:39:47,160 - cover_agent.record_replay_manager - INFO - Generated new files hash 06b9e33032dd.
2025-07-18 11:39:47,160 - cover_agent.record_replay_manager - INFO - Response file path stored_responses/perception_aggregator_responses_06b9e33032dd.yml.
2025-07-18 11:39:47,161 - cover_agent.cover_agent - INFO - Initializing AICaller without recording (no recorded responses found)
2025-07-18 11:39:47,161 - cover_agent.record_replay_manager - INFO - ✨ RecordReplayManager initialized in Run or Replay mode.
Traceback (most recent call last):
File "/opt/conda/envs/unittest_py312/bin/cover-agent", line 8, in
sys.exit(main())
^^^^^^
File "/opt/conda/envs/unittest_py312/lib/python3.12/site-packages/cover_agent/main.py", line 184, in main
agent = CoverAgent(config)
^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/unittest_py312/lib/python3.12/site-packages/cover_agent/cover_agent.py", line 122, in init
self.test_validator = UnitTestValidator(
^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/unittest_py312/lib/python3.12/site-packages/cover_agent/unit_test_validator.py", line 80, in init
self.included_files = self.get_included_files(included_files)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/conda/envs/unittest_py312/lib/python3.12/site-packages/cover_agent/unit_test_validator.py", line 325, in get_included_files
with open(file_path, "r") as file:
^^^^^^^^^^^^^^^^^^^^
TypeError: expected str, bytes or os.PathLike object, not list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions