2
Describe
ブロックとboolをチェックするブロックIt
を含むInvoke-Pester x.tests.ps1
を実行しています。関数は次のように失敗します。Azure関数タイマートリガーでPowerShell Pesterテストを呼び出す方法は?
/ServiceStatus/modules/Pester_3.4.6/Pester.psm1
2017-06-27T20:19:39.503 Function completed (Failure, Id=ffacbf52-7871-4c88-a831-8664d9b57bf8, Duration=1992ms)
2017-06-27T20:19:39.550 Exception while executing function: Functions.ServiceStatus. System.Management.Automation: A command that prompts the user failed because the host program or the command type does not support user interaction. Try a host program that supports user interaction, such as the Windows PowerShell Console or Windows PowerShell ISE, and remove prompt-related commands from command types that do not support user interaction, such as Windows PowerShell workflows.
View files
Test
Request body
1
Find
No results
Output
Status: 202 Accepted
実際のエラーメッセージを完全に投稿する必要があります。エラーの貴重な部分は、あなたのイメージから完全に切り捨てられます。 –
エラーは、あなたのコードがユーザーの入力を促しているが、ホストがそれをサポートしていないことを示唆しているようです。私はPesterが入力を促すとは思わないので、これは奇妙です。 '-Show None'を使用して出力を抑制してみてください(これは、' -Quiet'とは明らかに廃止予定です)。 –