我正在尝试使用tSQLt编写SSIS集成测试。我已经设置了我的表并在测试结束时使用AssertEqualsTable
,但我调用的包似乎没有运行。我在我的tSQLt测试中使用以下内容:
declare @execution_id BIGINT
EXEC [SSISDB].[catalog].[create_execution]
@package_name=N'$PackageName$',
@execution_id=@execution_id OUTPUT,
@folder_name=N'$FolderName$',
@project_name=N'$ProjectName$',
@use32bitruntime=False,
@reference_id=30058
SELECT @execution_id
DECLARE @var0 SMALLINT = 1
EXEC [SSISDB].[catalog].[set_execution_parameter_value]
@execution_id,
@object_type=50,
@parameter_name=N'LOGGING_LEVEL',
@parameter_value=@var0
EXEC [SSISDB].[catalog].[start_execution] @execution_id