pytest-arraydiff giving problems when running pytests coverage module
まだ誰も着手していません。
評価
調査の方向性
まず、test_file_name.py::test_name、--cov-report html、--cov=.、および --arraydiff を付けてコマンドを再現します。動作する pytest --arraydiff の呼び出しと比較し、test_cliff_erosion_equations.py::test_main を調べます。完了条件は、coverage によって参照ファイルの検索が変わるかどうかを特定し、その挙動を文書化または修正することです。
索引モデルが issue の本文から書いたものです。
説明
I am using the pytest-arraydiff package to test some functions which return arrays. For the tests in question I am using the following decorator:
@pytest.mark.array_compare(file_format='text')
I have used the following command to generate test files:
pytest --arraydiff-generate-path=test_data
Which generated some test files for me such that when I run:
pytest --arraydiff
My test suite runs successfully. Unfortunately I also need to run a coverage check, but running the following command:
pytest --cov-report html test_file_name.py::test_name --cov=. --arraydiff
Results in an error:
FAILED test_cliff_erosion_equations.py::test_main - Exception: File
not found for comparison test
Is pytest-arraydiff not compatible with pytest's coverage module? If not, how else can I test out functions which return arrays? what is the common practice here?
- 主要言語
- Python
- スター
- 27
- フォーク
- 21
- 平均マージ
- 6時間 39分
- マージ済み PR(30日)
- 1
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
astropy/pytest-arraydiff のほかの issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
astropy/pytest-arraydiff#69 · コメント 3 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
astropy/pytest-arraydiff#58 · リアクション 1 件 ·
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
astropy/pytest-arraydiff#46 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
astropy/pytest-arraydiff#41 ·
astropy/pytest-arraydiff の issue をすべて見る
似ている issue
-
triage/confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
agentscope-ai/agentscope#2775 ·
-
comp/desktop P3 type/bug
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
NousResearch/hermes-agent#118866 ·
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
apache/cloudstack#14222 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100