pytest-arraydiff giving problems when running pytests coverage module

オープン
#20 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
バグ
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
python
領域
testing

調査の方向性

まず、test_file_name.py::test_name、--cov-report html、--cov=.、および --arraydiff を付けてコマンドを再現します。動作する pytest --arraydiff の呼び出しと比較し、test_cliff_erosion_equations.py::test_main を調べます。完了条件は、coverage によって参照ファイルの検索が変わるかどうかを特定し、その挙動を文書化または修正することです。

索引モデルが issue の本文から書いたものです。

説明

bug

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

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

astropy/pytest-arraydiff のほかの issue

astropy/pytest-arraydiff の issue をすべて見る

似ている issue

Python の issue をもっと見る

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

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