You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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?
The text was updated successfully, but these errors were encountered:
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:
Is
pytest-arraydiff
not compatible withpytest
's coverage module? If not, how else can I test out functions which return arrays? what is the common practice here?The text was updated successfully, but these errors were encountered: