Documentation needed about how to write a "where" statement for test cases resulting from TestCase attribute or TestFixture parameters

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
csharp
領域
cli, documentation

調査の方向性

Test Selection Language のドキュメントと、そのコマンドラインのエントリポイントである --where から始めます。示されている TestFixture コンストラクターの値と TestBug345 の例を使用して、TestCase および TestFixture のパラメーターによって生成されるテストを選択する例を追加します。完了条件は、ドキュメントで特定のテストに適したフィルター構文と、より広い fixture の選択について説明されていることです。

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

説明

Please, can you write a couple of more examples in the documentation about the Test Selection Language about how to select tests resulting from TestCase attribute or TestFixture various constructing values etc.
For example I have a test that I want to select Test.ClipboardTests("no").TestBug345. I see this full name by doing the following on the assembly:

using (ITestEngine engine = TestEngineActivator.CreateInstance(true))
{
     engine.WorkDirectory = Environment.CurrentDirectory;
     engine.InternalTraceLevel = InternalTraceLevel.Verbose;

     TestPackage package = MakeTestPackage(assemblyName);
     ITestRunner runner = engine.GetRunner(package);
     return runner.Explore(TestFilter.Empty);
} 

The ClipboardTests test fixture has these attributes:

[TestFixture("en-US")]
[TestFixture("no")]
public  class ClipboardTests{
.
.
.
}

I have been trying to single out that test when running the command line by using:
--where="test=~/.*Test.ClipboardTests(\"no\").TestBug345.*/"
However, that does not work.
Of course, if I do --where="test=~/.*Test.ClipboardTests.*/", then I get all the tests in that fixture.

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

環境構築

Codespaces で開く

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

はじめの一歩

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

nunit/docs のほかの issue

nunit/docs の issue をすべて見る

似ている issue

CLI の issue をもっと見る

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

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