MVC :: Open Test Class In The Nunit GUI
Jan 10, 2011
Im pretty new to MVC and have never tried unittesting before, so i bought "Pro ASP.NET MVC2 Framework" by Steve Sanderson. I have installed Nunit but when i am trying to open my test class in the nunit GUI i get this error message Visual Studio 2010 > Projects > SportsStore > SportsStore.UnitTests > Bin > Debug > SportsStore.UnitTests.dll "This assembly was not built with any known testing framework"
View 6 Replies
Similar Messages:
May 5, 2010
I've just downloaded NUNit and would like it to be an option for my Test Project provider when I create a new MVC 2 application. At the moment the only option I am getting is the Visual Studio (MSTest) option.
View 2 Replies
May 4, 2010
I'm currently trying to upgrade our build server at work, going from having no build server to having one!
I'm using JetBrains' TeamCity (having used ReSharper for a couple of years I trust their stuff), and intend to use NUnit and MSBuild.
However, I've come up with an issue: it appears that it is not possible to test an ASP.NET web site with NUnit. I had assumed it would be possible to configure it to test App_Code after a build, however it seems that the only way to do tests nicely is through converting the web site to a web application
How could I go about this? the testing needs to be able to be fired automatically from TeamCity.
View 2 Replies
Apr 23, 2010
I created my testing project by just adding a class library and referencing nunit dll. Works fine.However, I'm curious as to how get NUnit integrating with VS2010 just like MS Unit.Also any good reading on TDD with MVC 2 (like specific to the new functionality available in MVC 2)?
View 2 Replies
Dec 26, 2010
I want to unit test my asp.net web application using NUnit.
For this I have downloaded and installed NUnit from internet.
But since I am new to this tool , I am looking for documentation about this tool.
How can I use this tool for testing web applications? give me links to documentation?
Also is it possible to integrate NUnit with visual studio, if yes, how?
View 2 Replies
Jan 28, 2010
I have installed the nunit tool and whenever I open the new project and try to add the assembly, I am getting applicationexception.
View 1 Replies
Sep 11, 2010
Click imagebutton open window.open in class asp.net 2.0
View 2 Replies
Feb 26, 2010
why i cann't open the asp.net mvc test project ?
View 4 Replies
Feb 26, 2010
A friend suggested instead of having a backend class which verifies the user permission in every public function (results are cached and non static) i should have a more 'streamlined' site. When i dropped the backend i also drop the database code and merged them in the appropriate user permission (base user, logged_in_user, moderator).
The site code looks better now that merging them has decreased LOC (tons of LOC in fact) and i write Method() instead of backend.Method() which increases readability. However now that i have no backend how am i suppose to unit test my code? and what about things like user file upload with different extensions? (txt vs jpg vs FLAC)
View 4 Replies
Nov 1, 2010
We have an application that may or may not have problems during heavy load. To try to get more correct usage patterns regarding load, we'd like to just fire up a bunch of users logging in, and then repeatedly just navigating through a list of links (our menu basically.)Is there any open source or free tools we can use? We're not adverse to pay for anything if we need to but right now we are trying a bunch of different things and we'd like to hold off on this until we know a bit more.Of course, some simply Python scripts would do the trick, but if there's anything we could input our links to that saves us a bit of time in this it would be most welcome.
View 2 Replies
Jun 2, 2010
In Visual Studio Team Edition there is a load test tool where you can select unit tests, integration tests etc... to form scenarios which are then used in a load test session with different configurations for example varying usage levels.
Looking at for example the NUnit framework, it would be possible to develop a form of such a tool, along with a base load testing code base, but I was interested if anyone knows of any open source project which has has already done a similar thing which could then be of use for this situation and possibly extended?
View 1 Replies
Nov 24, 2010
I have built an ASP.NET (.NET v4) application in VS 2010. It is working just fine. But when I try to create deployment package (so I can deploy it in our test IIS 7.5 Server), it gives me error like this,
Error 1 Could not open Source file: Could not find file 'C:11-2 estobjDebugCSAutoParameterize ransformedWeb.config'. 0 0 test
Thing is in past, I had deployed the SAME application using the SAME method.
View 2 Replies
May 15, 2010
i have to do some message exchange with a 3rd party (in a website).When the client posts a page, i start the message exchange. When that doesn't succeed for some reason, i report this to the client by rendering the page with a message.On the background, in a separate thread, i start a process to send abort messages to the 3rd party. I can't do this while the user is waiting for the page to come back, because it might take a few minutes.But in a test project, the test ends when the message to the 3rd party is sent, and after the new thread is started. But it seems that the new thread also ends, when the test is done.
Is that normal behaviour?I do start the thread in a new class with a reference to 2 objects from the class which tries to send the message in the first place, may that be a problem?EDIT: it keeps running when the whole process is started in IIS
View 1 Replies
Apr 4, 2010
I have created a webservice which is saving some data into to db. But i am getting this error
Cannot open database "test" requested by the login. The login failed. Login failed for user 'xyzASPNET'.
my connection string is
add name="ConnectionString1" connectionString="Data Source=.SQLExpress;Initial Catalog=IFItest;Integrated Security=True" providerName="System.Data.SqlClient"
View 3 Replies
Feb 8, 2010
I'm using Visual Web Dev 2008 Express and created a website. The database is an sql server 2008 db and I have added the ASPNET user login I also have the aspnet db object inmy db. When I run my app I can login using the login page, however when I try to retreive data from the database I get the following:
I tried going to Security | Logins | and seting the NT AUTHORITYNETWORK SERVICE to DB owner, but no luck.
What am I doing wrong here?
Cannot open database "TEST" requested by the login. The login failed.
Login failed for user 'NT AUTHORITYNETWORK SERVICE'.
View 5 Replies
Mar 10, 2010
I am just starting to learn MVC and have installed NUnit to use for testing. The NUnit option does not appear when creating a new MVC app, so I followed this tutorial
http://www.nikmakris.com/blog/post/Setting-Up-ASPNET-MVC-with-NUnit-for-Visual-Studio-2008-Standard-Edition-Visual-Web-Developer-Express-2008.aspx.
However, when I run devenv /setup it doesn't work (says it does not exist) and so I cannot install the NUnit template. Surely there is something else I can do to be able to install the templates?
View 4 Replies
Mar 28, 2011
I've see n a lot of discussions surrounding HttpSessionState and asp.net MVC.I'm trying to write tests for an asp.net application and to mock the HttpSessionState and if so, how?I'm currently using Rhino Mocks and Nunit
View 1 Replies
Jan 15, 2010
I've written an NUnit test project against an ASP.Net project. The code being tested cannot find the configuration values (in Web.config) when invoked from my test project. What is the right way to provide these configuration settings so my tests will run?
View 2 Replies
Jun 2, 2010
I switch to nUnit for my pet project (which I started over completely!).
However it seems doing so is costing me code coverage? Or am I just missing a simple and obvious way to enable code coverage when using nUnit.
I'm using ReSharper, which does a great job running my tests. However, VS itself seems not to recognize my tests at all?
View 3 Replies
Nov 17, 2010
How to setup NUnit in VS2010 instead of MSTest?. Can not find setup info in google for VS2010.
View 2 Replies
Aug 26, 2010
I moved from VS2008 running on XP 32 bit to VS2010 running on Win7 64 bit and just noticed that I can't debug in NUnit like I used to.
On my old system, I just went to Debug|Attach to Process, chose NUnit.exe, and ran my tests from the NUnit GUI. VS2008 would stop at the breakpoints just as normal.
Now when I try this using NUnit 2.5.5.10112 on the new configuraiton it just skips over my breakpoints.
View 1 Replies
Sep 8, 2010
But I have other tests that are essentially deployment tests (you can't test how the production deployment went using a unit test on a build server) and I'd like to use the nUnit framework to run these.But, the production server doesn't have the nUnit command line executer. I'm only allowed to run aspx pages and reference .dll's in bin.What do I need to do to run tests (yeah, yeah, they're not really unit tests--relax) using nUnit in a webpage? Is there a straight forward way to do this, or does this essentially require porting the nUnit winforms test runner to ASP.NET?
View 1 Replies
Aug 17, 2010
I have an app that I am testing with NUNit. The project im testing has several helper classes that are created as public static readonly. When I run the NUnit tests, they all fail with the same error
Systems.Code.Test.TransactionTest.CreateDataContext_ConnectionString_ReturnsDataContextObject:
View 2 Replies
Aug 17, 2010
Im pretty new to NUnit and am beginning the process of setting up my tests. Some of these test involve a database, specifically checking a particular value against a value in a database and if its not greater than the last retrieved value, flag an error. Whats the best way to test in this scenario ? should I write one value to a database then create another value thats out of sequence and run a database query ? This would involve putting a known value into the table, then running the query with another value.
There is no rollback attribute for nunit, so I gues using TransactionScope would work, that way I could return the database to a known state after the test. There tables have foreign keys so that means adding a lot of extra 'dummy' data first to some of the other tables. Is this sort of 'testing' the best way ? I basically need to perform the test based on an existing data value and I guess this must be pretty standard stuff, so whats the best way ?
As I understand it, the tests should be self contained, so any data i insert into the database during the test should be removed afterwards, is this correct ? If so, it means I need to insert test data into 6 additional tables just to test one function, then remove it after the test has completed, is this the normal way to to this ?
View 2 Replies
Feb 5, 2010
My que is why use NUnit if VS2008 has built in Unit Testing
In my company app they are uing NUnit and I am wondering why. Now VS2008 has built in Unit Testing so why to use NUnit?
View 1 Replies