mstest

Data Driven Unit Tests

What is the best practice for testing an API that depends on data from the database? What are the issues I need to watch out for in a "Continuous Integration" environment that runs Unit Tests as part of the build process? I mean would you deploy your database as part of the build scripts (may be run your installer) or should I go for har...

Can VS.Net Unit Test be run outside the IDE?

Howdy, Is there a way you can run your UnitTest project against a compiled DLL outside of the IDE? Basically we have testing procedures to validate code before moving into production. I would not want to run the tests inside the IDE. I would want to have the compiled code ready to move to production and be able to run a final test aga...

MSTest & AppDomains

Hello In some my project I notice that during executing unit tests under VSTS2008 its VSTestHost's memory consuming grows. As I have very many tests in my solution it leads to OutOfMemroyException eventually. That looks very strange for me as I was sure that MSTest creates a new AppDomain for each unit test. Otherwise how would it reset...

NUnit vs. MbUnit vs. MSTest vs. xUnit.net

There are quite a lot of unittesting frameworks out there for .NET. I found this little feature comparison: http://www.codeplex.com/xunit/Wiki/View.aspx?title=Comparisons 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? ...

How do I use MSTest without Visual Studio?

Does MSTest have standalone GUI similar to nUnit that lets me use it and run test without visual studio? What is the official site for MSTest where I can learn more about how to use it? ...

How do I manage deployment item references that may either be on an x86 install, or x64 install for an MSTest-based project?

Much related to this question, we have a scenario on my team where we need to copy the contents of a folder for a suite of libraries and configuration files for said libraries to our folder where our test code is running from, as part of the test's deployment step. Due to the installation size, and other factors, checking in this instal...

Visual Studio 2008 Test View Panel Not Showing All Tests

I have a set of 6 MSTest test assemblies. When I bring up the Test View window and group by Project all of my projects show up save one. I cannot seem to make Visual Studio understand that this project is a unit test assembly. Resharper's Unit Test Runner has no problem identifying this sixth assembly. So the assembly is fine from that ...

Using MSTest as site/environment monitoring tool

Hi all, We currently use Hp SiteScope for monitoring synthetic transactions across some of our web apps. This works pretty well except for the licensing cost for each synthetic transaction makes it prohibitive to ensure adequate coverage across our applications. So, an alternative would be to use SiteScope's URL monitoring which can ba...

Running unit tests on Team Foundation Server (TFS) builds

What are the steps to get Team Foundation Server running unit tests when a given build runs? What are the caveats / pitfalls / workarounds a dev or sysadmin should be aware of when setting up a TFS server to do this for the first time? What are common troubleshooting steps for unit test problems during builds? ...

How Does MSTEST/Visual Studio 2008 Team Test Decide Test Method Execution Order?

I was under the impression that the test methods in a unit test class would be executed in the order that they appear in the class file. Apparently this is not true. It also doesn't appear to be purely based off of alphabetical order either. How does MSTEST decide execution order? EDIT: I was able to track down the answer after digging ...

What is needed to execute visual studio 2005 web tests?

Our test department has a series of web tests created using Visual Studio 2005 Team Tester Edition. I would like to be able to execute these tests against my local machine. I attempted to use the mstest command line tool to accomplish this as described in this MSDN article. But I get the following error: C:\WebTests\Participant>mste...

Is there a fluent assertion API for MSTest?

I've recently been exposed to the fluent interface in nUnit and I love it; however, I am using msTest. Does anyone know if there is a fluent interface that is either testing framework agnostic or for msTest? Thanks, Josh ...

How to read ".NET Data Provider for SqlServer" performance counters from MS Test?

How do I read from the performance counter "NumberOfActiveConnections" of the category ".NET Data Provider for SqlServer" from a unit test in MS Test? I'm trying the following but it seems like I get the instance name wrong. The MSDN documentation claims this is a correct way of getting the instance name of a WinForms app but this won't...

How to RowTest with MSTest ?

I know that MSTest doens't support RowTest and similar tests. What MSTests users do? How is it possible to live without RowTest support? I've seen DataDriven test features but sounds like too much overhead, is there any 3rd patch or tool which allow me to do RowTest similar tests in MSTest ? ...

Can you create 'Dynamic' tests with MS Test Suite?

I'm using QUnit to test some JQuery, and I've got Watin to load up the test page and parse out the test results, but I'm wondering if there's a way to dynamically generate the tests from the page using the MS Test suite rather than having to write a Test function for each test? I'm just trying to reduce the amount of code having to be w...

Integrating Hudson with MS Test?

Is it possible to integrate Hudson with MS Test? I am setting up a smaller CI server on my development machine with Hudson right now, just so that I can have some statistics (ie. FxCop and compiler warnings). Of course, it would also be nice if it could just run my unit tests and present their output. Up to now, I have added the follow...

Using ReSharper Test Runner to run MSTest Unit Tests

I need to use the ReSharper Unit Test Runner to run my MSTest Unit Tests on VS 2008. I have heard of using "Gallio" to do this but I don't know what Gallio is (it seemed like some all purpose VS extensibility framework). Does anyone know the best way to run MSTest Unit Tests using ReSharper Test Runner? ...

MSTest failing in 2008 from build script

Hi guys anyone know what the helll is going on here? ERROR SNIPPET: Loading ..\LocalTestRun.testrunconfig... ..\LocalTestRun.testrunconfig Expected type attribute not found. File ..\LocalTestRun.testrunconfig Line 2 Pos 2. task in a test target in an msbuild script I have seen other people getting the same error with no fixes. ...

Getting PartCover to work

I want to try PartCover for code coverage. I'm running Visual Studio 2008 Professional with MSTest. The Professional Edition does not include the Team Testing tools, like Code Coverage. So, I'm trying PartCover, but I can't get it to work. In the PartCover.Browser I've selected the MSTest executable, I've pointed the working arguments t...

MsTest Run all test in folders

I am trying to setup a TeamCity 4.0 build server to run VS2008 (non-TFS) unit tests. If I manually create a test list and maintain the list so all unit tests created are included in the list, I can use the "/testlist:mylist" option to run all the tests automatically on the build server. But maintaining the list itself will be a problem...