jerry-git / jerry-git/pytest-split

Tests are incorrectly split when there are a lot of slow skipped tests

オープン
#78 コメント 0 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
325
フォーク
56
PR マージ指標
30日以内にマージされた PR はありません

説明

I'm running `pytest-split` on a test suite that has a lot of slow tests which are `pytest.mark`ed as slow and skipped by default. I can include all these tests by using a custom `pytest --all-tests` option.
The issue I'm seeing now is that when I create a `.test_durations` file via `pytest --all-tests --store-durations` then the regular `pytest --splits 4 ...` run without the `--all-tests` will be unbalanced. It seems as though `pytest-split` is taking into account the runtime of the skipped tests and thus failing to produce a balanced split. A workaround is to store one `.tests_durations` file for `pytest --all-tests` and a separate file for the plain `pytest`, but I think ideally this should not be required.

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

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

調査の方向性

Reproduce the imbalance with pytest --all-tests --store-durations followed by a regular pytest --splits 4 run, then trace how stored durations for skipped tests are loaded and used for splitting. Done means the regular run produces balanced splits without requiring a separate duration file, with coverage for suites containing slow tests skipped by default.

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

評価

技術スタック
python
領域
testing-qa
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
48/100

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

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