9

Visual Studio 2008 に TestDriven.Net をインストールしました。TD.Net から mbunit テストを実行すると、次のメッセージが表示されます。

Gallio/MbUnit 単体テストを実行しようとしているようです。

Gallio v3.0.6 ビルド 787 / Gallio v3.1 ビルド 313 以降の場合 (推奨): 「MbUnit.dll」リファレンスを含むディレクトリに、Gallio のテスト ランナー ファイル (「MbUnit.dll.tdnet」、「TDNet」) も含まれていることを確認してください。 \Gallio.TDNetRunner.dll'、'Gallio.dll' など)

まあまあ。私はまだ Gallio をインストールしていません。

これで、Gallio を簡単にインストールして、問題を解決できることがわかりました。ただし、すべての開発者のマシンに Gallio をインストールしなくても、これらのテストを実行できるかどうかを知りたいと思っています。これを機能させるために、bin ディレクトリにいくつかの dll を含めることはできますか?

これで成功した人はいますか?

注: 上記のメッセージの指示に従いましたが、うまくいきませんでした。

ありがとう!

4

2 に答える 2

2

It looks like you are running a brand new version of TDNet that should support running MbUnit tests right out of the box without any installation required. So that's good.

Try grabbing the ZIP file distribution of Gallio and extracting it somewhere. You should not need to rearrange the files at all. Just reference them from your test project in situ.

The minimum set of files that you need to copy to your source tree is a bit complicated because it depends on the features that you want to keep. Generally it's safe to delete the folders of test framework adapters that you don't want to use right now (RSpec, NUnit, csUnit, etc.) or for plugins that absolutely require installation (VisualStudio, ReSharper).

Just keep in mind that you need to keep the *.plugin files and Resources for all of the plugins that you use. The dlls are not sufficient on their own.

于 2009-10-28T17:23:42.840 に答える
0

Gallio をインストールする必要はありません。必要なのは、nuget を介して提供される DLL だけです。それをチェックアウトし、プロジェクトに適用してから、dll をチェックインすれば準備完了です。ただし、TDNet などのテスト ランナーをインストールする必要があります。

  1. VS2012を開く
  2. [ツール] > [ライブラリ パッケージ マネージャー] > [ソリューションの NuGet パッケージの管理...] を選択します。
  3. 「Gallio & MbUnit」を検索してインストールします (dll を適用する開いているプロジェクトを尋ねられます)。
  4. ダウンロードしたパッケージ ディレクトリと dll で SVN チェックインを実行します。
于 2013-09-19T15:02:50.823 に答える