astropy / astropy/pytest-arraydiff

pytest-arraydiff giving problems when running pytests coverage module

オープン
#20 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
bug
主要言語
Python
スター
27
フォーク
21
平均マージ
6時間 39分
マージ済み PR(30日)
1

説明

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?

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。