Azure / azure-functions-durable-powershell

PowerShell SDK for writing Durable Functions apps
MIT License
7 stars 3 forks source link

Add basic testing infrastructure #14

Closed michaelpeng36 closed 1 year ago

michaelpeng36 commented 1 year ago

Adds basic XUnit testing capability based on that implemented in https://github.com/Azure/azure-functions-powershell-worker. These changes are based on those made in PR #4, which has grown stale.

E2E testing may be done by invoking the Start-E2ETest.ps1 in the test/E2E folder, which downloads the appropriate version of Core Tools or uses a local copy (depending on the switch parameters included upon invocation). dotnet test is then run on the XUnit project AzureFunctions.PowerShell.Durable.SDK.E2E to start Core Tools and run tests.

Currently, the Start-E2ETest.ps1 -SkipCoreToolsDownload command only works for .msi installations of Core Tools.

Resolves #30.