mbunit

How do I get Team Build to run MbUnit tests?

匆匆过客 提交于 2019-12-04 21:19:29
I am having trouble getting Team Build to execute my MbUnit unit tests. I have tried to edit TFSBuild.proj and added the following parts: <Project ...> <UsingTask TaskName="MbUnit.MSBuild.Tasks.MbUnit" AssemblyFile="path_to_MbUnit.MSBuild.Tasks.dll" /> ... ... <ItemGroup> <TestAssemblies Include="$(OutDir)\Project1.dll" /> <TestAssemblies Include="$(OutDir)\Project2.dll" /> </ItemGroup> <Target Name="Tests"> <MbUnit Assemblies="@(TestAssemblies)" ReportTypes="html" ReportFileNameFormat="buildreport{0}{1}" ReportOutputDirectory="." /> </Target> ... </Project> But I have yet to get the tests to

When unit testing, do you have to use a database to test CRUD operations?

天大地大妈咪最大 提交于 2019-12-04 11:57:33
问题 When unit testing, is it a must to use a database when testing CRUD operations? Can sql lite help with this? Do you have to cre-create the db somehow in memory? I am using mbunit. 回答1: No. Integrating an actual DB would be integration testing . Not unit testing. Yes you could use any in-memory DB like SQLite or MS SQL Compact for this if you can't abstract (mock) your DAL/DAO in any other way. With this in mind I have to point out, that unit testing is possible all the way to DAL, but not DAL

My ReSharper Gutter Icons for Unit Tests aren't showing

泄露秘密 提交于 2019-12-04 06:09:05
I've installed ReSharper 4.1 and Gallio 3.0.5, but I don't get the gutter icons for unit tests. The tests seem to run fine in the Test Explorer, but I don't have icons next to the tests in code. What could be causing this? I previously had the MbUnit 2.4 ReSharper plugin installed, but it should be uninstalled now. I did this to get them to show up again. Maybe it was an overkill. Uninstall ReSharper Uninstall Gallio Delete %appdata%\JetBrains folder Install ReSharper Start Visual Studio Close Visual Studio Install Gallio Start Visual Studio I think the key was deleting the %appdata%\JetBrains

Gallio test runner plugin to Visual Studio 2008 and 2010 for MBUnit tests

两盒软妹~` 提交于 2019-12-04 03:25:14
If I install Gallio 3.x will it also install a test runner plugin for Visual Studio? Or must I use an additional plug-in like TestDriven.NET or Visual Nunit to run MbUnit test classes from within VS? TestDriven.Net works really well. Gallio also supports the ReSharper unit test runner and Visual Studio test tools. We will be shipping a new release of Gallio this week with support for R# 5.0 and VS 2010. Lee Oades Install Gallio 3.1 on the dev machine. Then in VS2008, you'll have the option to create a "MbUnit v3 Test Project". This doesn't just include all of the Gallio dlls for you, it has a

What is a Generative Unit Test Framework?

跟風遠走 提交于 2019-12-04 01:33:58
On stackoverflow I've come across mbunit. On its page it states that mbunit is a generative unit test framework, but I can't find anywhere that describes what a Generative unit test framework is. I was hoping to get : A definition Links to articles about what a Generative Unit Test framework is and isn't. A generative testing framework is one where the code itself generates test cases . Typically you write code to generate test cases according to one or more assumptions you would like to test. I'm not fambiliar with mbunit itself, but for example using the Clojure generative test framework

MSBuild — Use the .csproj file or roll your own?

左心房为你撑大大i 提交于 2019-11-30 04:43:46
OK, so I readily concede that I'm a newbie when it comes to continuous integration. That being said, I'm trying to set up a CC.NET environment to educate myself, but I'm having trouble finding the information I need to get the automated build portion set up. As I understand it, in C# the .csproj file produced by VS 2005 and forward is a valid MSBuild file. To wit, I've been able to integrate the MSBuild task into CC.NET using the .csproj file, but I have a few issues with this: There's a lot going on in here that I'm not sure I really need in an automated build environment. I didn't create

MSBuild — Use the .csproj file or roll your own?

旧城冷巷雨未停 提交于 2019-11-29 02:36:57
问题 OK, so I readily concede that I'm a newbie when it comes to continuous integration. That being said, I'm trying to set up a CC.NET environment to educate myself, but I'm having trouble finding the information I need to get the automated build portion set up. As I understand it, in C# the .csproj file produced by VS 2005 and forward is a valid MSBuild file. To wit, I've been able to integrate the MSBuild task into CC.NET using the .csproj file, but I have a few issues with this: There's a lot

NUnit vs. MbUnit vs. MSTest vs. xUnit.net [closed]

こ雲淡風輕ζ 提交于 2019-11-26 02:15:29
问题 There are quite a lot of unittesting frameworks out there for .NET. I found this little feature comparison: http://xunit.github.io/docs/comparisons.html Now I am to choose the best one for us. But how? Does it matter? Which one is most future proof and has a decent momentum behind it? Should I care about the features? While xUnit seems to be most modern and specifically designed for .NET, NUnit again seems to be the one that is widely accepted. MSTest again is already integrated into Visual