Open JohnPenney opened 5 years ago
Got same issue its not starting Azurite on test execution in my Integration tests project using VS 2017
I believe after Install-Package Azurite
, Azurite will start immediately with a init.ps1
file.
"Init.ps1 runs the first time a package is installed in a solution. If the same package is installed into additional projects in the solution, the script is not run during those installations. The script also runs every time the solution is opened. For example, if you install a package, close Visual Studio, and then start Visual Studio and open the solution, the Init.ps1script runs again."
Better integration with Visual Studio is in our radar, especially after we refactored and release latest Azurite V3.
Is this only available for Visual Studio users, how about for JetBrains Rider users?
@frankely I'm not famialir with JetBrain Rider ecosystem. Any suggestions?
@XiaoningLiu it would be nice if we could wrap this into a NuGet package that exposes some sort of class that allows us to decide when to start/stop the service so we can set it up or down during our tests. For example, this library Mongo2Go has done an excellent job doing that https://github.com/Mongo2Go/Mongo2Go
Thanks @frankely We will evulate NuGet as Azurite V3's release channel.
Is this possible with some 1st or 3rd party nuget package already?
The README says that after installing the nuget package it will "immediately start [azurite] in a dedicated console window".
It's not clear from this when the emulator will start thereafter... when the project is loaded? Built? Run?
This is relevant to me because I want to control the emulator as part of a test: see this StackOverflow question