Run tests last - Order attribute case

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

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

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
testing-qa

調査の方向性

この issue では既存の Order 属性が示され、C# の例が提供されていますが、リポジトリのファイルやテストはありません。まず Order 属性のドキュメントと実装を特定し、次に関連するテストカバレッジを確認してください。最後の順序の動作と、順序付けされていないテストとの相互作用が文書化され、検証されていれば完了です。

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

説明

While having the order attribute is great for tests that need to run first / or in a given order, it would be great to also have an attribute for running specific tests last.

Our solution looks like this:

[Test, Order(1)]
public void TestA() { ... }

[Test, Order(2)]
public void TestB() { ... }

[Test]
public void TestC() { ... }

[Test, {shouldRunLast in order(1)}]
public void TestD()

We have some quick integration tests which should run first. We have "normal" tests which don't have the order attribute and we have some very long running tests that should run last.

You can see that it would be a problem to give all "normal" tests an arbitrary order number just so the long running tests are ran last. A "LastOrder(n)" attribute would be appreciated.

主要言語
Dockerfile
スター
601
フォーク
159
平均マージ
22時間 18分
マージ済み PR(30日)
6

環境構築

Codespaces で開く

このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。

はじめの一歩

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

nunit/docs のほかの issue

nunit/docs の issue をすべて見る

似ている issue

Testing & QA の issue をもっと見る

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

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