testdriven.net

如何获取代码所在的程序集的路径?

假装没事ソ 提交于 2020-04-27 15:33:14
问题: Is there a way to get the path for the assembly in which the current code resides? 有没有办法获取当前代码所在的程序集的路径? I do not want the path of the calling assembly, just the one containing the code. 我不希望调用程序集的路径,而只是包含代码的路径。 Basically my unit test needs to read some xml test files which are located relative to the dll. 基本上,我的单​​元测试需要读取一些相对于dll的xml测试文件。 I want the path to always resolve correctly regardless of whether the testing dll is run from TestDriven.NET, the MbUnit GUI or something else. 我希望该路径始终正确解析,而不管测试dll是从TestDriven.NET,MbUnit GUI还是其他版本运行。 Edit : People seem to be misunderstanding what I'm

Run all tests in a test class using TestDriven.NET and NUnit

天涯浪子 提交于 2020-01-03 08:26:14
问题 Note: I am using TestDriven.NET 3.0.2749 and NUnit 2.6.0.12051 for this project. I have installed both TestDriven.NET and NUnit and am trying to get TestDriven.NET to run all tests in a test class via the right-click context menu. From the TestDriven.NET documentation: If the code editor window is selected, the test(s) to execute will be determined by the position of the caret; individual tests are executed by right-clicking anywhere inside a test method and selecting 'Run Test(s)' as shown

Register a Gallio zip installation with TestDriven.Net

一世执手 提交于 2019-12-25 00:23:09
问题 I want to register a copy of the Gallio zip installation with TestDriven.Net. In another thread, a member has mentioned that the Gallio installer needs to run after the TD installer in order to register Gallio with TD. Unfortunately, I can't run the lastest Gallio installer per corporate policy. Is there a way around this problem? Thanks. Update: Manually editing the registry worked for me. On Windows XP, under HKEY_CURRENT_USER/Software/MutantDesign/TestDriven.NET/TestRunners, Add key Gallio

Help configuring MSpec

半腔热情 提交于 2019-12-23 03:44:12
问题 rig: win7 64bit, vs2010, mvc v2, TestDriven.Net 3.0, Reshaper 5.0, MSpec 0.3 i recently started a new project and want to use mspec. (1) copied Machine.Specifications.ReSharperRunner.5.0.dll and Machine.Specifications.dll to JetBrains\ReSharper\5.0\Bin\Plugins\Machine.Specifications (2) copied Machine.Specifications.TDNetRunner.dll to TestDriven.NET 3\Machine.Specifications when i try to run the test i get this error: System.IO.FileNotFoundException: Could not load file or assembly 'Machine

Floating point differences depending on how debug build is run

浪尽此生 提交于 2019-12-22 08:30:02
问题 I am using a debug build and obtaining different results on the same machine whether I run under the debugger or not. I am using the excellent TestDriven.Net to run the unit tests. "run" with TestDriven.Net or the external NUnit runner produces the same result "run with debugger" with TestDriven.Net produces different results The code is A complex iterative mesh deformation routine involving significant computation at the limits of floating point precision C#, VS2012 targeting .Net 3.5.

Force NCover 1.5.8 to use v4 framework like testdriven.net does?

流过昼夜 提交于 2019-12-18 10:37:15
问题 I want to run coverage from the command line, but can't seem to get NCover 1.5.8 to instrument the code. It must be possible as when I run coverage tests with TestDriven.net it works. the difference seems to be that TD.NET is able to get NCover to use framework 4.0 (you get this in the log when it runs : MESSAGE: v4.0.30319 ) but from the command line I can't make it (I get this in the log : MESSAGE: v2.0.50727 ) So how can I make NCover play nice with nunit from the commandline, like it does

Does TestDriven.NET work with VS Express?

徘徊边缘 提交于 2019-12-12 09:36:24
问题 Does TestDriven.NET work with VS Express? EDIT: Yeah, I just installed it and noticed that it wasn't working. It looks like a really cool program. 回答1: According to the release notes for TestDriven.NET, support for the Express editions of Visual Studio was removed in 2.8 (2.08). 回答2: I have a vague recollection of the author of TestDriven getting into all sorts of bother with Microsoft threatening to revoke his MVP status unless he modified it to only work with the non-free versions of VS.

Running F# xUnit Fact from TestDriven.NET reporting “It looks like you're trying to execute an xUnit.net unit test.”

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-11 01:29:44
问题 I am trying to run xUnit tests (from an F# module, if it makes any difference) using TestDriven.NET, but whatever I do I get this error: It looks like you're trying to execute an xUnit.net unit test. For xUnit 1.5 or above (recommended): Please ensure that the directory containing your 'xunit.dll' reference also contains xUnit's test runner files ('xunit.dll.tdnet', 'xunit.runner.tdnet.dll' etc.) For earlier versions: You need to install support for TestDriven.Net using xUnit's 'xunit

How do I see Debug.WriteLine statements when using TestDriven.Net?

谁说我不能喝 提交于 2019-12-10 15:09:18
问题 I'm trying to use TestDriven.Net not only to test my code, but to call a function on my code whose purpose is to print out the internal state of the code to the Debug window. Here's a very simplified example of what I'm trying to do.. <TestFixture()> _ Public Class UnitTest <Test()> _ Public Sub TestDebug() Dim oClass1 As New Class1 Assert.AreEqual(True, oClass1.IsTrue) Debug.WriteLine("About to call .PrintDebug()") oClass1.PrintToDebug() End Sub End Class Public Class Class1 Private _IsTrue

TestDriven.NET is not running my SetUp methods for MbUnit

♀尐吖头ヾ 提交于 2019-12-08 14:36:16
问题 I've created some MbUnit Test Fixtures that have SetUp methods marked with the SetUp attribute. These methods run before the tests just fine using the MbUnit GUI, the console runner, and the ReSharper MbUnit plugin. However, when I run the tests with TestDriven.NET it does not run the SetUp methods at all. Does anyone know if this is a bug with TestDriven.NET or if I have something setup wrong? 回答1: No longer an issue with recent versions of Gallio since v3.0.4. Just make sure to use the 64