Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8289307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T12:28:46+00:00 2026-06-08T12:28:46+00:00

I want to run teambuild’s unit tests (more than once) against different databases, e.g.

  • 0

I want to run teambuild’s unit tests (more than once) against different databases, e.g. I want to test my build compiles, then run the same suite of tests against SQLServer, then Oracle etc. databases.

I’m pretty sure I could do something clumsy like build/test against 1st config file then build/test against 2nd config file etc. but I’m looking for something more elegant (preferably without the pointless 2nd recompilation).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T12:28:48+00:00Added an answer on June 8, 2026 at 12:28 pm

    You’ll want seperate unit tests (these are considered system tests, really – since they are involving a database) for each database type. If the same unit test can fail for 1 DB platform and pass for another, then it is not telling you anything specific enough when you look at the pass/fail status and the history of the test results for that test over time.

    Otherwise, consider decoupling or abstracting the db connection in such a way that you can programmatically change it while setting up the test (see [ClassInitialize()] and [TestInitialize()] attributes in the MSTEST unit test framework).

    The elegant solution is to not depend on the databases for unit tests; create seperate tests for the databases that check the data returned by the queries and procedures you are calling.

    Visual Studio 2010 Premium has the capability of running unit tests to verify data and behaviour of SQL Server 2005 (and later) DBs. I would be suprised if you could not also find a tool to test Oracle Dbs or roll your own system of testing what is returned (something like ndbUnit might help)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to run unit and integrated tests for my windows phone 7 application.But
We want to upgrade our build servers to run our typemock tests, but I'm
I want to run an update query. The query will be run against multiple
I want to run a CSharp process from my java server under a different
I am writing an NUnit test that I want run only in the Release
I want to run a sqlldr command customized with some parameters, more precisely a
We're using TFS 2010 Team Build which automatically runs our unit tests during the
I want run all script from the directory . Like , The directory contains
I want run a script as follows: runner: ssh 'java program &' ssh 'java
Why this code don't work,when i want run this code vwd 2008 express show

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.