Skip to content

bug(cli): test list 崩溃,GCONF.WORKING_PATH 为 None #6017

Description

@Kaoruha

What to build

ginkgo test list 崩溃,GCONF.WORKING_PATH 为 None 时 Path(None) / "test" 触发 TypeError。

test_cli.py:59 直接使用 Path(GCONF.WORKING_PATH) 未做空值保护。

Steps to reproduce

  1. ginkgo test list
  2. 观察:TypeError: expected str, bytes or os.PathLike object, not NoneType

Expected behavior

WORKING_PATH 为 None 时使用合理默认值(项目根目录)或给出明确错误提示。

Acceptance criteria

  • WORKING_PATH 为 None 时使用合理默认值
  • ginkgo test list 正常显示测试模块列表

Blocked by

None - can start immediately.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Medium: should do this quarterbugSomething isn't workingmod:cliCLI (typer commands)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions