pytest-arraydiff giving problems when running pytests coverage module
還沒有人認領這個 Issue。
評估
研究方向
首先,使用 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 分鐘
- 30 天內合併 PR
- 1
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 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 個 reaction ·
-
enhancement
難度 5/5 一週以上 新手友好度 25/100
astropy/pytest-arraydiff#46 ·
-
難度 2/5 1-3 小時 新手友好度 35/100
astropy/pytest-arraydiff#41 ·
查看 astropy/pytest-arraydiff 的全部 Issue
相似的 Issue
-
sponsored
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 86/100
Diaoul/subliminal#1382 ·
-
難度 1/5 1 小時以內 新手友好度 92/100
-
triage/confirmed
難度 2/5 1-3 小時 新手友好度 88/100
agentscope-ai/agentscope#2775 ·
-
難度 2/5 1-3 小時 新手友好度 84/100