pytest-arraydiff giving problems when running pytests coverage module
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 25/100
Research direction
Start by reproducing the command with test_file_name.py::test_name, --cov-report html, --cov=., and --arraydiff. Compare it with the working pytest --arraydiff invocation and inspect test_cliff_erosion_equations.py::test_main; done means identifying whether coverage changes reference-file lookup and documenting or fixing the behavior.
Written by the indexing model from the issue text.
Description
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?
- Dominant language
- Python
- Stars
- 27
- Forks
- 21
- Avg merge
- 6h 39m
- Merged PRs (30d)
- 1
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from astropy/pytest-arraydiff
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
astropy/pytest-arraydiff#69 · 3 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
astropy/pytest-arraydiff#58 · 1 reaction ·
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 25/100
astropy/pytest-arraydiff#46 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
astropy/pytest-arraydiff#41 ·
All issues in astropy/pytest-arraydiff
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
learningequality/ricecooker#747 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
BSData/horus-heresy-3rd-edition#3171 ·
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
run-llama/llama_index#23199 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
KhronosGroup/glTF-Blender-IO#2769 ·