SQL Test forum
SQL Test is a graphical unit test runner tool for SQL Server. It is integrated into SQL Server Management Studio and is powered by the free open source tSQLt unit testing framework. Please post new feature ideas here. For general questions and discussion, please use www.stackoverflow.com or ask.sqlservercentral.com with sql-server and tdd tags.
-
have a filter on the database being worked on
We have many customer databases, all of a similar schema, all with tSQLt installed. A typical developer machine may have 8-10 of these databases on.
It is very hard to see which database to work on in the SQLTest as the tree view just expands them all.
1 vote -
Show the actual reason for the Test failure in Testing Dynamic SQL Standard Test
The "test Procedures using dynamic SQL without sp_executesql" fails and points to a website that waffles on about some stuff which seem to indicate that the problem relates to datatypes. But Your test rig doesn't indicate which var is being incorrectly converted.
1 vote -
Upgrade Sql Test to latest version of tSQLt
There is a newer version of tSQLt available that should be made an update to Sql Test.
4 votes -
new standardtest : Find Nullable Bit Columns without default
MS-access has problems with non-nullable bit columns so you can either use (tiny)int columns or make them nullable but have a default value
ALTER PROC tools.find_nullable_columns_without_default_bit_only
as
BEGIN
-------------------------------------------------------------------------------
-- Finds all NULL-able columns that have no DEFAULT constraint. Also emits the
-- ALTER TABLE statements needed to add the DEFAULT constraints
-------------------------------------------------------------------------------
-- Copyright 2009 Larry Leonard, Definitive Solutions Inc.
-- http://www.DefinitiveSolutions.com
--
-- Copying and distribution of this file, with or without modification, are
-- permitted in any medium without royalty provided the copyright notice and
-- this notice are preserved. This file is offered as-is, without any…1 vote -
tSQLt window popup fail
When tSQLt window pups up all content (nodes, buttons, text) in it blurs and spreads all over the surface of the window.
4 votes -
Don't require installing objects in your database for unit testing
I have to remove the objects it creates on my database before they go to production. QA can't run these at all as they are not allowed to create/alter any database objects.
2 votes -
Webbased interface
SQL Server Management Studio is required for this tool. An additional Webbased interface with just basic editing options would be great. This interface would only serve the testteam who can create and maintain test-scripts and does not require installing SSMS.
1 vote -
Better log/audit logging
The test results in the table [Test.Result] contains data from the last run. We are looking for a tool which records all logs for each run. So, we could schedule the test to run daily and create a dashboard based on the runs.
1 vote -
Table fakes to optionally include triggers
Table fakes don't currently include triggers, which means that we can't use them to test trigger functions.
7 votes -
Allow copying text from SQL Test Messages window
It appears that there is an issue in SSMS (I am on SQL 2012 RTM, US English) that prevents you from copying text out of the SQL Test Messages window unless all SQL editor windows are saved to disk. For example, if you run some tests, then highlight the text in the SQL Test Messages window, and do either CTRL+C or Edit... Copy, SSMS will give you a scary error message if you haven't actually saved all of your query windows to disk files: "Unsaved documents cannot be cut or copied to the clipboard from the Miscellaneous Files project. You…
9 votes -
Expand Reporting of Test cases
Is it possible to print a report to a specific network location (network drive or shared folder) containing the results of all tests run from a test class?
For example: The tSQLt.Private_RunTestClass generates a series of messages that looks really good, but you have to print this (and save to PDF) manually.
3 votes -
2 votes
-
SQLCop Decimal Size Problem Inside Comment
SQLCop Decimal Size Problem does not handle comments. For example, this procedure is improperly flagged.
CREATE PROCEDURE dbo.X
AS BEGIN
--this procedure has no decimal fields in it.
SELECT 'X' AS [X]
END1 vote -
Make ResultSetFilter available to intellisense
Currently typing tSQLt following my a dot (.) does not show ResultSetFilter as an available method.
1 vote -
Add icon or change existing icon to pass fail at the test class level. I have several test classes or schemas when running tests and the t
Add icon or change existing icon to pass fail at the test class level. I have several test classes or schemes when running tests and the tree is collapsed some indication that all tests passed or one or more test failed. change the color of the text or the icon does not to be much just a simple visual indication.
1 vote -
Run Test with Debug enabled
Add the ability to run tests with SQL Server debugging enabled. This would then make it more consistent with other unit testing frameworks in the Microsoft IDE space.
Users would then be able to step into the failure points when stored procedures fail unit tests (preferably skipping the tSQLt procedures).4 votes -
3 votes
-
Show setup in SQL Test window
I've created a Setup procedure but it doesn't show up in the SQL Test window. So it's not clear for any schema whether there is an associated SetUp. Given that it must have the same schema as it's tests could it be included in the window
12 votes -
detect if tSQLt framework in already installed
Our DBA ran the 2 scripts to install the tSQLt framework in our test database. I then installed SQL Test and now when I try to add a database to SQL Test, SQL Test insists that I have to install the framework in order to run tests against the db. Can't SQL Test just detect the the framework is already installed? Or is there another way around this? I can't install the framework through the installer due to insufficient permissions on the server.
2 votes -
Bug: The Add Database To SQL Test dialog
The dialog strips out underscores from the database names and the list is not sorted alphabetically.
4 votes
- Don't see your idea?