Tests: pytest settings from `tox.ini` and `setup.cfg`

未关闭 适合新手
#161 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
88/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
typescript
领域
ci-cd, testing

调研方向

从 tests/repo/python-adapter.test.ts 以及现有的 pytest.ini 和 pyproject.toml fixtures 入手;阅读它们如何测试 readPytestSettings。为 tox.ini [pytest] 和 setup.cfg [tool:pytest] 中的两个键添加合成 fixtures 和测试,包括缩进的续行,以及 tox.ini 没有 [pytest] 时的回退情况。运行 npm test;如果测试发现行为不正确,请按照 issue 的要求另行报告。

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

描述

adapter good first issue

readPytestSettings reads [pytest] from tox.ini and [tool:pytest] from setup.cfg. tests/repo/python-adapter.test.ts only covers pytest.ini and pyproject.toml.

Done when: there are tests for:

  • python_files and testpaths from tox.ini [pytest], including a value continued on an indented line
  • the same keys from setup.cfg [tool:pytest]
  • a tox.ini without [pytest] that's skipped in favour of setup.cfg

This is test-only. If a test shows wrong behaviour, open a bug with the failing case instead of fixing it in the same PR.


New to DiffCI? See CONTRIBUTING.md: add a synthetic fixture, run npm test, and sign off commits with git commit -s. Comment here to claim the issue.

主要语言
TypeScript
星标
0
派生
4
平均合并
18 小时 41 分钟
30 天内合并 PR
48

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

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

DiffCI/core 的其他 Issue

查看 DiffCI/core 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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