Quantcast
Channel: CodeSection,代码区,SQL Server(mssql)数据库 技术分享 - CodeSec
Viewing all articles
Browse latest Browse all 3160

Running tSQLt Test Cases Does Not Show Results in SQL Server

$
0
0

I tried to test the two string values using tSQLt, but I get the result ZERO Result.

The Test Case Class Script is

EXEC tSQLt.NewTestClass 'CompareString' GO CREATE PROCEDURE CompareString.[Simple Test] AS BEGIN DECLARE @Actual VARCHAR(10) = 'Super'; DECLARE @Expected VARCHAR(10) = 'Super'; EXEC tSQLt.AssertEqualsString @Expected,@Actual; END

I tried to execute the Test Case using the following query

EXEC tSQLt.Run 'CompareString'

But I got the output

(0 row(s) affected) +----------------------+ |Test Execution Summary| +----------------------+ |No|Test Case Name|Dur(ms)|Result| +--+--------------+-------+------+ ----------------------------------------------------------------------------- Test Case Summary: 0 test case(s) executed, 0 succeeded, 0 failed, 0 errored. -----------------------------------------------------------------------------

I don't know where I missed. Kindly assist me to run this test.


Viewing all articles
Browse latest Browse all 3160

Trending Articles