carpentries-incubator / carpentries-incubator/python-intermediate-development
Add information about additional helpful pytest features
- 主要言語
- TeX
- スター
- 63
- フォーク
- 77
- 平均マージ
- 20時間 8分
- マージ済み PR(30日)
- 3
説明
In the course of a run of the course at UKAEA, the following feedback was collected:
- Recommend adding `ids` argument to `pytest.parameterise`, e.g. else you can have a test `my_test[1-2-None]` which is not very informative.
- Explaining how to run one sub-test (encourage quotes for cross-shell compatibility - zsh doesnt like without):
```sh
pytest -k "my_test[iteration-name]"
```
- Mention other useful opts?
- `-s` stdout
- `-x` terminate on first fail
- `-v` show each test by name
@kzscisoft I believe it might have been you to add this? Anything further you might add?
The usual concern is adding more material to an already lengthy course. However, perhaps this could be added as an "Optional" exercise for learners that are a little bit ahead?
コントリビューションガイド
調査の方向性
この issue にはレッスンファイルもテストのエントリポイントも記載されていません。まずコースに既存の pytest とパラメータ化に関する資料を確認し、その後、ids、引用符で囲んだ -k によるサブテストの選択、および -s/-x/-v について、要求されたオプションのガイダンスを追加してください。例が正確で、コースの範囲に適合していれば完了です。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- python
- 領域
- documentation, testing
- issue の種類
- ドキュメント
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 48/100