Split tests into smaller sub-tests
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 25/100
調査の方向性
ファイルやテストは指定されていません。まず、現在の関数ごとに1つのテストという構造を見つけ、Hypothesis が examples と xfail の動作をどのように扱っているかを確認してください。以前のチェックに依存する assertions を壊すことなく、assertions を個別に報告して xfailed にできるようになれば、refactor は完了です。
索引モデルが issue の本文から書いたものです。
説明
Right now there is one test per function. This has worked so far, but it has limitations. The main problem is that if a single thing fails in a test, you can't really get at any of the assertions that come after it. And even if hypothesis could generate separate examples for separate assertions, if you are maintaining a library and you want to xfail a given assertion, you have to xfail the whole test.
This is going to be important for reporting, because it will make it easier to report on exactly which things a given function isn't compliant on. However, this is also a pretty big refactor. It also could be challenging in some cases if some assertion actually depends on a previous assertion working to make sense (e.g., maybe some assertion will implicitly assume a given shape because it was already asserted). For this reason, I would consider this to be lower priority for now, and not worry about implementing it until it becomes needed for reporting (although it certainly doesn't hurt to start thinking about how it might work).
- 主要言語
- Python
- スター
- 74
- フォーク
- 54
- 平均マージ
- 4時間 35分
- マージ済み PR(30日)
- 4
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
data-apis/array-api-tests のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 87/100
data-apis/array-api-tests#465 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
data-apis/array-api-tests#460 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
data-apis/array-api-tests#455 · コメント 2 件 ·
-
tracking
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
data-apis/array-api-tests#381 · コメント 9 件 ·
-
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
data-apis/array-api-tests#379 · コメント 10 件 ·
data-apis/array-api-tests の issue をすべて見る
似ている issue
-
area: harness bug status: needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Human-Agent-Society/reef#625 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
-
難易度 1/5 1時間未満 初心者へのやさしさ 80/100
learningequality/kolibri#15351 · コメント 2 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
-
Name consistency オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
eellak/triplestore#65 · コメント 1 件 ·