tSQLt - Database Unit Testing for SQL Server

Database Unit Testing for SQL Server

  • Home
  • Docs
    • Documents
    • Quick Start
    • Articles
  • Training
  • Downloads
tSQLt » tSQLt build.7 Release Notes

tSQLt build.7 Release Notes

05.23.2010 by dennis // Leave a Comment

IMPORTANT: tSQLt now utilizes CLR (Common Language Runtime) stored procedures. In order to install tSQLt, CLRs must be enabled in SQL Server. The SetClrEnabled.sql file has the command which enables CLRs. If CLRs are not already enabled, this command must be executed before installing tSQLt.

New Features:

  1. A new procedure tSQLt.RunAll, executes all test classes created with the tSQLt.NewTestClass procedure. For examples, see Creating and Running Test Cases in tSQLt
  2. Added procedure tSQLt.AssertResultSetsHaveSameMetaData which allows the meta data of two result sets to be compared. This compares several properties of each column of the result set including the column name, data type, length, precision, scale and other properties.
  3. Added procedure tSQLt.ResultSetFilter which returns a single result set from a statement which produces multiple result sets. For example, you want to test a stored procedure which executes several select statements. You can now use ResultSetFilter to choose which result set to emit, and therefore you can capture that result set into a table for use with tSQLt.AssertEqualsTable. For examples, see Using tSQLt.ResultsetFilter
  4. The results of running tests can now be output in an XML format. After calling one of the tSQLt.Run… procedures to execute your test cases, you can call tSQLt.XmlResultFormatter to display the results in XML. The format is compatible with CruiseControl and can be merged into a build log the same way that a JUnit test report is merged. See Integrating tSQLt with Cruise Control for more information.
Share and Enjoy:
  • FacebookFacebook
  • TwitterTwitter
  • LinkedInLinkedIn
  • RedditReddit
  • StumbleUponStumbleUpon
  • TechnoratiTechnorati
  • PrintPrint

Categories // Release Notes

Navigation

  • Join the conversation
  • Downloads
  • New Logo
  • Sponsors & Contributors
  • Release Notes
  • Articles
  • Training
  • How to get more out of tSQLt
  • Why you should use the tSQLt framework
  • Why you should unit test SQL Server Code
  • Full user guide
  • Documents
    • Quick Start
    • tSQLt Tutorial
    • tSQLt Keyboard Shortcuts
    • Test Creation and Execution
      • NewTestClass
      • DropClass
      • RunAll
      • Run
      • RenameClass
    • Assertions
      • AssertEmptyTable
      • AssertNotEquals
      • AssertObjectDoesNotExist
      • AssertEqualsTableSchema
      • AssertEquals
      • AssertEqualsString
      • AssertEqualsTable
      • AssertObjectExists
      • AssertResultSetsHaveSameMetaData
      • Fail
      • AssertLike
    • Expectations
      • ExpectException
      • ExpectNoException
    • Isolating Dependencies
      • FakeFunction
      • RemoveObjectIfExists
      • ApplyConstraint
      • SpyProcedure
      • FakeTable
      • ApplyTrigger
      • RemoveObject

Links

  • tSQLt on GitHub
  • tSQLt Mailing List
  • twitter hashtag (#tsqlt)
  • tSQLt tag on stackoverflow.com
  • SQL Server Community on Slack (#tsqlt)
  • #tSQLtLive on YouTube

Sponsors

sqlity.net
redgate.com

A sqlity.net llc Web Property. | ©2010 - 2020, All Rights Reserved. | Privacy Policy | Terms of Use