-
Notifications
You must be signed in to change notification settings - Fork 8
Open
Description
When I run the task to run unit test against tSQLtExample
##[error]Microsoft.SqlServer.Management.PowerShell.SqlPowerShellSqlExecutionException: Test Case Summary: 11 test case(s) executed, 10 succeeded, 0 skipped, 1 failed, 0 errored.
##[debug]Processed: ##vso[task.logissue type=error;]Microsoft.SqlServer.Management.PowerShell.SqlPowerShellSqlExecutionException: Test Case Summary: 11 test case(s) executed, 10 succeeded, 0 skipped, 1 failed, 0 errored.
------------------------------------------------------------------------------------------
Msg 50000, Level 16, State 10, Procedure , Line 1. ---> System.Data.SqlClient.SqlException: Test Case Summary: 11 test case(s) executed, 10 succeeded, 0 skipped, 1 failed, 0 errored.
------------------------------------------------------------------------------------------
at System.Data.SqlClient.SqlConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady)
at System.Data.SqlClient.SqlDataReader.TryConsumeMetaData()
at System.Data.SqlClient.SqlDataReader.get_MetaData()
at System.Data.SqlClient.SqlCommand.FinishExecuteReader(SqlDataReader ds, RunBehavior runBehavior, String resetOptionsString, Boolean isInternal, Boolean forDescribeParameterEncryption, Boolean shouldCacheForAlwaysEncrypted)
at System.Data.SqlClient.SqlCommand.RunExecuteReaderTds(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, Boolean async, Int32 timeout, Task& task, Boolean asyncWrite, Boolean inRetry, SqlDataReader ds, Boolean describeParameterEncryptionRequest)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method, TaskCompletionSource`1 completion, Int32 timeout, Task& task, Boolean& usedCache, Boolean asyncWrite, Boolean inRetry)
at System.Data.SqlClient.SqlCommand.RunExecuteReader(CommandBehavior cmdBehavior, RunBehavior runBehavior, Boolean returnStream, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader(CommandBehavior behavior, String method)
at System.Data.SqlClient.SqlCommand.ExecuteReader()
at Microsoft.SqlServer.Management.PowerShell.ExecutionProcessor.ExecuteBatch(String batch)
--- End of inner exception stack trace ---
Tests ran successfully. Saving test results to D:\a\1\s\tSQLt-out\TEST-Results.xml
##[error]System.Management.Automation.PSArgumentException: Property "XML*" cannot be found.
##[debug]Processed: ##vso[task.logissue type=error;]System.Management.Automation.PSArgumentException: Property "XML*" cannot be found.
Finished gathering test results and writing it to D:\a\1\s\tSQLt-out\TEST-Results.xml
##[error]PowerShell script completed with 2 errors.
Finishing: Run tSQlt Unit Tests
Task : Run tSQLt Unit Tests
Description : Run tSQLt Unit Tests and extract its results and Code Coverage
Version : 0.2.3
Then, in the subsequent task I've got the following error:
##[warning]Failed to read D:\a\1\s\tSQLt-out\TEST-Results.xml. Error : Root element is missing..
Task : Publish Test Results
Description : Publish test results to Azure Pipelines
Version : 2.171.0
Author : Microsoft Corporation
Link to my build (for my record purposes)
Gwayaboy
Metadata
Metadata
Assignees
Labels
No labels