I installed NUnit 2.5.9 under VS2010 and would like to make it run with the freshly released MVC3.
Following
http://www.nuclex.org/downloads/tools/39-nunit-template-for-asp-net-mvc-2
I cannot achieve to make NUnit show up as a Test Framework in the MVC3-New Project template.
Neither do I see NUnit as a template when adding a project.
How to achive it to have NUnit work with MVC 3?
Marcus Kimpenhaus created a Visual Studio 2010 extension for this purpose:
http://visualstudiogallery.msdn.microsoft.com/7f3bdc82-f418-41aa-ad15-f1d6f89df47a
It worked for me.
I've found the answer on my own:
Marcus Kimpenhaus posted a solution which includes a batch file for implementation.
See: http://blog.kimpenhaus.de/2010/12/16/asp-net-mvc-3-with-nunit-testproject-updated-template/
Thank you very much Marcus for your work
Edited: Link has changed inside Markus Kimpenhaus' blog
Related
In previous versions of VS, we were having Create Unit test Wizard option, which actually uses the dll and create basic test methods for each classes.
But that option is not available in VS 2013.
So is there any template which i need to download to get that option back into the VS2013.
1)I think this vs2013 extension can help you:
https://visualstudiogallery.msdn.microsoft.com/45208924-e7b0-45df-8cff-165b505a38d7
Or:
2) If you have resharper , it is built in function there too.
Or:
3) Another option is to solve the issue using this workaround:
http://dl.my/2013/create-unit-tests-function-not-available-or-disabled/
Let me know if it helps you... if not, I'll try to support with a different answer.
The project Configuration Section Designer http://csd.codeplex.com is such a great tool but now I've moved to VS2010 (forced actually) and it doesn't support 2010. I use this tool a great deal but now I can't and I have a ton of config stuff to write.
Is there an alternative to this tool that will work with VS2010?
I'm hoping for a good solution and not having to do a project in VS2008 and manually import the generated files. Ugh, the thought of using appSettings to store configuration is just horrid.
I was recently added as a contributor to this project (andym1978). I was able to fix the code to support VisualStudio 2010. We want to do more testing before releasing to the official 2.0 downloads area, but I've uploaded an unofficial 2.0 release
HERE. Please report bugs to the issues page and I will get to them ASAP.
There is an open discussion regrading this matter.
currently it seems like there is no formal version that is built for vs2010.
more information here : http://csd.codeplex.com/discussions/73703?ProjectName=csd
The version for VS 2010 is now available.
http://csd.codeplex.com/
In my solution (under VS2008) I have few web projects, few class libraries, unit test project.
It seems like during solution conversion to VS 2010 the target framework for UnitTest projects was changed to .NET 4.0
When I try to change it back (I need to check how system works in .NET 3.5 and compare with current behavior) I am receiving the following error:
Attempted re-targeting of the project has been canceled. You cannot change the specified .NET framework version or profile for a test project.
Why I can't change it? How can I do?
Thanks a lot!
Unfortunately, found a negative answer:
http://connect.microsoft.com/VisualStudio/feedback/details/483939/unable-to-change-target-framework-version-on-unit-test-projects
closed as "Won't fix"
http://connect.microsoft.com/VisualStudio/feedback/details/514130/visual-studio-2010-beta-2-silently-upgrades-mstest-test-projects-to-net-4-0
clase as "by design"
:(
P.S. I like one of the suggested workarounds: don't use MS Test :)
I am using VS2010 and I am making a call to a vendor's web service, which they use WSE i web services. I can not find in "Add references" to add the namespace/dll. It works when i created a project in VS2005.
I Found this blog and it indicated on how to get it recognized.
http://www.junasoftware.com/blog/how-to-use-wse-3-in-visual-studio-2010.aspx
but after trying that it still doesn't work for me. Anyone have any ideas for me?
Thanks,
Marios
I solved this problem by downloading the WSE Runtime from here
The way to fix this is to generate the Webservice in Visual Studio 2005 then copy the code into just a class in VS2010 and use it as a class instead as a Webservice. It's not the best wey for keeping things standard but it works flawlessly!
For me, even after adding the reference to the local copy of Microsoft.Web.Service3.dll, I still had to change the project to be geared for .NET 4.0 and not .NET 4.0 Client.
Microsoft.Web.Service3.dll has a dependency on System.Web, which doesn't exist in the .NET 4.0 Client, but does in .NET 4.0.
This factoid was noted in the Error List, in the Warnings.
Only the fact that the Microsoft.Web namescape could not be found was in the Errors.
-Jesse
I ran into the same problem when used SAP Business object dlls.
I installed WSE from (http://www.microsoft.com/downloads/en/details.aspx?FamilyID=018a09fd-3a74-43c5-8ec1-8d789091255d&displaylang=en) and added reference to my project.
It solved the issue
Is there an official Visual Studio test project template for NUnit? If not, what might one look like?
There is no official one. Just start a class library project and import the nUnit assemblies to it.
There are plenty of template how to articles around though - here is one.
We can use this official Template for Unit Testing as well.
Somebody on Github made a template: https://github.com/orangutanboy/NUnitTestFixtureTemplate
When creating a MVC application you have the option for creating a unit test project. Does not give examples but provides a framework.
There is no official template for NUnit exists in visual studio.you have to explaicitly download it. But it has general unit test framework.
you need to download Nunit framework using either nuget package.
Select Tool menu -> Library package manager ->manage nuget package for solution
or
Select Tool menu -> Library package manager ->package manager for console.
Add the reference in existing unit test project and remove the existing unit test namespace from it.