testdriven.net

Spec fails when run by mspec.exe, but passes when run by TD.NET

走远了吗. 提交于 2019-12-03 18:15:17
问题 I wrote about this topic in another question. However, I've since refactored my code to get rid of configuration access, thus allowing the specs to pass. Or so I thought. They run fine from within Visual Studio using TestDriven.Net. However, when I run them during rake using the mspec.exe tool, they still fail with a serialization exception. So I've created a completely self-contained example that does basically nothing except setup fake security credentials on the thread. This test passes

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

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-29 21:47:50
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 with TD.NET? Sam Holder after more searching I found this: If you have found this thread because you

Spec fails when run by mspec.exe, but passes when run by TD.NET

一个人想着一个人 提交于 2019-11-29 16:33:57
I wrote about this topic in another question . However, I've since refactored my code to get rid of configuration access, thus allowing the specs to pass. Or so I thought. They run fine from within Visual Studio using TestDriven.Net. However, when I run them during rake using the mspec.exe tool, they still fail with a serialization exception. So I've created a completely self-contained example that does basically nothing except setup fake security credentials on the thread. This test passes just fine in TD.Net, but blows up in mspec.exe. Does anybody have any suggestions? Update: I've

Why is the xUnit Runner not finding my tests

守給你的承諾、 提交于 2019-11-26 18:52:45
I have a xUnit.net Test as follows: static class MyTestClass { [Fact] static void MyTestMethod() { } } The xUnit plugin for VS 2012 says: No tests found to run. TestDriven.net runs it fine but mentions something about Ad hoc : 1 passed, 0 failed, 0 skipped (see 'Task List'), took 0.47 seconds (Ad hoc) TeamCity, xunit.gui.exe and xunit.console.exe and Visual Studio also can't find TestMethod (I've got xunit.runner.visualstudio installed and VS is seeing some tests.) What gives? Ruben Bartelink TL;DR your Test Classes must be public (but your Test Methods can be private and/or static ) For

Why is the xUnit Runner not finding my tests

百般思念 提交于 2019-11-26 06:38:40
问题 I have a xUnit.net Test as follows: static class MyTestClass { [Fact] static void MyTestMethod() { } } The xUnit plugin for VS 2012 says: No tests found to run. TestDriven.net runs it fine but mentions something about Ad hoc: 1 passed, 0 failed, 0 skipped (see \'Task List\'), took 0.47 seconds (Ad hoc) TeamCity, xunit.gui.exe and xunit.console.exe and Visual Studio also can\'t find TestMethod (I\'ve got xunit.runner.visualstudio installed and VS is seeing some tests.) What gives? 回答1: TL;DR