tSQLt 测试不工作,而我的老师是
tSQLt testing isnt working while my teachers is
对于学校,我们正在为一个项目进行测试。我老师给我的测试没有问题:
EXEC tSQLt.NewTestClass 'testMaxPresidents1';
GO
CREATE PROCEDURE [testMaxPresidents1].[test die controleert dat een eerste werknemer van type president opgenomen kan worden]
AS
BEGIN
EXEC tSQLt.Fail 'TODO:Implement this test.'
END;
GO
EXEC tSQLt.[Run] 'testMaxPresidents1.test die controleert dat een eerste werknemer van type president opgenomen kan worden';
它给出了结果:
(0 rows affected)
[testMaxPresidents1].[test die controleert dat een eerste werknemer van type president opgenomen kan worden] failed: (Failure) TODO:Implement this test.
+----------------------+
|Test Execution Summary|
+----------------------+
|No|Test Case Name |Dur(ms)|Result |
+--+------------------------------------------------------------------------------------------------------------+-------+-------+
|1 |[testMaxPresidents1].[test die controleert dat een eerste werknemer van type president opgenomen kan worden]| 6|Failure|
但是当我使用相同的模板时它不起作用。
EXEC tSQLt.NewTestClass 'testMaxPresidents1';
GO
CREATE PROCEDURE [testMaxPresidents1].[bla bla bla]
AS
BEGIN
EXEC tSQLt.Fail 'TODO:Implement this test.'
END;
GO
EXEC tSQLt.[Run] 'testMaxPresidents1.bla bla bla';
(1 row 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.
无论我怎么尝试,我都无法让它工作,我也无法联系到我的老师。
我运行他们都在同一个数据库中。
tSQLt requires test procedure names to start with the four letters "test".
bla bla bla
不会这样做,因此不被视为测试。
对于学校,我们正在为一个项目进行测试。我老师给我的测试没有问题:
EXEC tSQLt.NewTestClass 'testMaxPresidents1';
GO
CREATE PROCEDURE [testMaxPresidents1].[test die controleert dat een eerste werknemer van type president opgenomen kan worden]
AS
BEGIN
EXEC tSQLt.Fail 'TODO:Implement this test.'
END;
GO
EXEC tSQLt.[Run] 'testMaxPresidents1.test die controleert dat een eerste werknemer van type president opgenomen kan worden';
它给出了结果:
(0 rows affected)
[testMaxPresidents1].[test die controleert dat een eerste werknemer van type president opgenomen kan worden] failed: (Failure) TODO:Implement this test.
+----------------------+
|Test Execution Summary|
+----------------------+
|No|Test Case Name |Dur(ms)|Result |
+--+------------------------------------------------------------------------------------------------------------+-------+-------+
|1 |[testMaxPresidents1].[test die controleert dat een eerste werknemer van type president opgenomen kan worden]| 6|Failure|
但是当我使用相同的模板时它不起作用。
EXEC tSQLt.NewTestClass 'testMaxPresidents1';
GO
CREATE PROCEDURE [testMaxPresidents1].[bla bla bla]
AS
BEGIN
EXEC tSQLt.Fail 'TODO:Implement this test.'
END;
GO
EXEC tSQLt.[Run] 'testMaxPresidents1.bla bla bla';
(1 row 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.
无论我怎么尝试,我都无法让它工作,我也无法联系到我的老师。
我运行他们都在同一个数据库中。
tSQLt requires test procedure names to start with the four letters "test".
bla bla bla
不会这样做,因此不被视为测试。