Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

##[debug]Processed: ##vso[task.logissue type=error;]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'testOrClassName' because it is an empty string. #11

Closed
jeffchen-codingconsultantco opened this issue Apr 9, 2019 · 2 comments

Comments

@jeffchen-codingconsultantco
Copy link

@jeffchen-codingconsultantco jeffchen-codingconsultantco commented Apr 9, 2019

I find out my tSQLt task failed because of following configuration:

I check the run all test checkbox.
image

when I debug the pipeline, I find following parameter settings:
##[debug]PowerShellHandler.Execute - AddParameter(queryTimeout=60)
##[debug]PowerShellHandler.Execute - AddParameter(runAllTests=true)
##[debug]PowerShellHandler.Execute - AddParameter(testOrClassName=)

However, I get following error when pipeline run tSQLt task:
##[error]System.Management.Automation.ParameterBindingValidationException: Cannot bind argument to parameter 'testOrClassName' because it is an empty string.

@jeffchen-codingconsultantco

This comment has been minimized.

Copy link
Author

@jeffchen-codingconsultantco jeffchen-codingconsultantco commented Apr 9, 2019

I fix the issue by saving the pipeline again.

@trisapeace

This comment has been minimized.

Copy link

@trisapeace trisapeace commented Apr 11, 2019

I have the same issue in my pipelines when I have the "Run all test suites and test cases" checkbox checked.

Saving the pipeline again didn't work for me. I even tried deleting the "Run tSQlt Unit Tests" plugin and adding it again with all the same parameters and that also had the same issue.

My guess is because it's marked as a required parameter. Could someone please re-open this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.