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

オープン 初心者向け
#161 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
88/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
typescript
領域
ci-cd, testing

調査の方向性

tests/repo/python-adapter.test.ts と pytest.ini、pyproject.toml の既存のフィクスチャから始め、readPytestSettings のテスト方法を確認してください。tox.ini [pytest] と setup.cfg [tool:pytest] の両方のキーについて、インデントされた継続行と、tox.ini に [pytest] がない場合のフォールバックを含む合成フィクスチャとテストを追加してください。npm test を実行してください。テストで誤った動作が判明した場合は、依頼の指示どおり別途報告してください。

索引モデルが 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分
マージ済み PR(30日)
48

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

DiffCI/core のほかの issue

DiffCI/core の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。