Add unit tests for project stack detection

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

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

評価

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

調査の方向性

core/project_reader.py と read_project_context() から始め、一時ディレクトリを使用するテストを tests/test_project_reader.py に追加する。README、package.json の name/version、.github の検出,覆盖 Additionally نىلك directory that does not contain any of them returning an empty or minimal context.

索引モデルが issue の本文から書いたものです。

説明

enhancement good first issue help wanted

core/project_reader.py detects the README, package manifests, and a .github directory, and that result is sent with generation. There is no unit test for that detection.

Leave this issue unassigned.

Acceptance criteria

  • A temp-directory test shows read_project_context() picks up README.md, package.json name and version, and a .github directory.
  • A directory with none of those files returns an empty or minimal context without raising.
  • Tests do not read the Gitcast install directory or call the network.

Files

  • tests/test_project_reader.py
  • core/project_reader.py only if the test exposes a real bug
主要言語
Python
スター
6
フォーク
2
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

drizzy765/gitcast のほかの issue

drizzy765/gitcast の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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