Starting Azure Storage Emulator for tests

marco.braga's Avatar

marco.braga

05 Dec, 2014 10:18 AM

I've managed to start azure emulator for testing, so I'd like to share my solution here. :)

In reference to closed topic http://help.appveyor.com/discussions/problems/452-error-executing-tests-that-use-the-azure-storage-emulator, I've decided to start the emulator in a setup fixture (single fixture for the entire test class). This allows the solution to work both locally and on AppVeyor.
My solution checks if the emulator is already running and, if needed, starts it. At the end of Azure Storage related tests, if the emulator was down before tests, stops it.

Gist here

Full credits to David Peden for sharing the AzureStorageEmulatorManager class!

  1. Support Staff 1 Posted by Feodor Fitsner on 05 Dec, 2014 08:05 PM

    Feodor Fitsner's Avatar

    Wow, thanks for the great howto! Moving it to KB section.

  2. 2 Posted by feldman.sean on 29 Jun, 2017 05:59 AM

    feldman.sean's Avatar

    For Windows 10 the process name has changed to "AzureStorageEmulator".
    https://gist.github.com/SeanFeldman/f0d4dde66b537896ed388331e00b1d88

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:18 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac