Skip to content

Development

Paul Batum edited this page Oct 22, 2019 · 23 revisions

Environment requirements

  • VS 2019
  • Add a strong name skip verification entry to since the SDK assemblies are delay signed. To do this run sn -Vr *,31bf3856ad364e35 from a Visual Studio administrator command prompt. See Sn.exe documentation for details. Particularly the warning about only enabling this during development.

Building + Running Tests

  • Pull and build the source in VS (WebJobs.sln)
  • Set up the test storage account environment variables
    • AzureWebJobsStorage - Set this to your test storage account. If you don't have an Azure Storage account yet, create one.
    • AzureWebJobsSecondaryStorage - Set this to a secondary test storage account. The multi-account tests require this.
    • AzureWebJobsDashboard - Storage account that will be used for dashboard logging (can be same as above)
    • AzureWebJobsServiceBus - Set this to your Service Bus namespace connection string
    • In the primary service bus namespace, create a queue named core-test-queue1
    • AzureWebJobsServiceBusSecondary - Set this to your Service Bus secondary namespace connection string
    • AzureWebJobsTestHubConnection - Create an EventHub named webjobstesthub, create a shared access policy for that hub named "Default" with Manage rights, and set this to that connection string
    • AzureWebJobsTestHubConnection2 - Create an EventHub named webjobstesthub2, create a shared access policy for that hub named "Default" with Manage rights, and set this to that connection string
  • Open Test Explorer to view and run tests (we use XUnit)
Clone this wiki locally