LinuxSuRen / LinuxSuRen/api-testing

Support loading test cases from IO stream

未关闭
#94 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

enhancement good first issue
主要语言
Go
星标
369
派生
67
PR 合并指标
30 天内没有已合并 PR

描述

The test case files are might stored in a HTTP server. It would be good to support loading it from an URL in this case. See also the following example usage:

atest run -p http://foo/test.yaml

See also https://github.com/LinuxSuRen/api-testing/blob/d564f69c9c0bee75fa3437be4c7cc5a3fa8c4683/pkg/testing/loader_file.go#L29

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

从 pkg/testing/loader_file.go 中链接的行开始,然后追踪 atest run -p 如何加载所提供的路径。验证示例 URL 能否从 HTTP 服务器加载测试用例,并检查现有的文件加载行为是否仍然正常工作。

由索引模型根据 Issue 内容生成。

评估

技术栈
go
领域
cli, testing
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
描述清楚
新手友好度
55/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。