2

In my azure-pipelines.yml file, I have this task:

- task: VSTest@2
  inputs:
    platform: '$(buildPlatform)'
    configuration: '$(buildConfiguration)'

In my integration tests I use both MSQLLocalDB (that seems to work fine) and AzureStorageEmulator (that doesn't).

I would like to try this answer.

How can I add these commands:

sqllocaldb create MSSQLLocalDB
sqllocaldb start MSSQLLocalDB
sqllocaldb info MSSQLLocalDB

"C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start

to run before the test task to have a running instance of Azure Storage Emulator before the tests start?

Victor
  • 23,172
  • 30
  • 86
  • 125

1 Answers1

0

Try this:

- script: '"C:\Program Files\Microsoft SQL Server\130\Tools\Binn\SqlLocalDB.exe" create "v13.0" 13.0 -s'
  displayName: 'Init Test Db'

- script: '"C:\Program Files (x86)\Microsoft SDKs\Azure\Storage Emulator\AzureStorageEmulator.exe" start'
  displayName: 'Start Storage Emulator'

Needs to be on a vs2017-win2016 vmImage.

ChrisR
  • 1,308
  • 1
  • 14
  • 27