Red Gate forums :: View topic - Unit testing in VS/TFS
Return to www.red-gate.com RSS Feed Available

Search  | Usergroups |  Profile |  Messages |  Log in  Register 
Go to product documentation
SQL Source Control 1
SQL Source Control 1 forum

Unit testing in VS/TFS

Search in SQL Source Control 1 forum
Post new topic   Reply to topic
Jump to:  
Author Message
Nicon



Joined: 25 May 2011
Posts: 4
Location: Staines

PostPosted: Wed Jul 06, 2011 10:09 am    Post subject: Unit testing in VS/TFS Reply with quote

In some of our upcoming projects we are required to implement automated unit testing for some of the database objects.

It seems that the only way to implement unit testing against DB objects in VS 2001 is to create a database project.

Since SQL source control cannot interface with this project type, is there anyway of implementing a unit test against the scripts that SQL source control generates? Or is there a way of interfacing with the database project that i am missing?

Thanks a lot.

Steve
Back to top
View user's profile Send private message
David Atkinson



Joined: 05 Dec 2005
Posts: 1121
Location: Twitter: @dtabase

PostPosted: Thu Jul 07, 2011 11:15 am    Post subject: Reply with quote

Thanks for your question.

Database project support is an increasingly popular request. If this is something you'd like to see, please vote for it at:

http://redgate.uservoice.com/forums/39019-sql-source-control/suggestions/1010465-work-with-a-visual-studio-2010-database-project?ref=title

In the meantime we're recomment using NUnit or a similar framework to test your database code in the same way that you test your .NET code.

David Atkinson
Red Gate Software
Back to top
View user's profile Send private message Send e-mail
Nicon



Joined: 25 May 2011
Posts: 4
Location: Staines

PostPosted: Thu Jul 07, 2011 11:16 am    Post subject: Reply with quote

Great, thanks for the advice.

I have already voted! Very Happy
Back to top
View user's profile Send private message
David Atkinson



Joined: 05 Dec 2005
Posts: 1121
Location: Twitter: @dtabase

PostPosted: Thu Nov 24, 2011 7:49 pm    Post subject: Reply with quote

Steve,

If you're still interested in unit testing your SQL objects, maybe SQL Test might be something you could use?

http://www.red-gate.com/products/sql-development/sql-test/

I'd be interested to get your thoughts on this.

David
Back to top
View user's profile Send private message Send e-mail
Nicon



Joined: 25 May 2011
Posts: 4
Location: Staines

PostPosted: Fri Nov 25, 2011 9:11 am    Post subject: Reply with quote

Thanks for that David.

Looks like what we were after.

I will get it installed and then let you know my thoughts.

Regards

Steve
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic All times are GMT + 1 Hour
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group