I have an Azure DevOps build pipeline that has been working for a long time.
Here is how I set it up:
The pipeline contains the Restore, Build, Test & NuGet Packaging & Publish steps.
As it can be seen in the screenshot, the integration tests have been deactivated because they take some time to complete. So, I would like to move the execution of the integration tests to a release pipeline along with the NuGet Publish steps.
I do not see how I can run these integration tests in such pipeline. I thought calling dotnet test
would work however it does not work: the command requires a .csproj
file, not the built DLL. And, at this stage, the Release pipeline has to work in the artifact provided by the Build pipeline.
As suggested in the comments, I see that dotnet vstest
could be used but the option is not available on devops:
Question
How can I run my integration tests in an Azure DevOps Release pipeline?
dotnet vstest
instead docs.microsoft.com/en-us/dotnet/core/tools/… it accepts a list of DLLs to run tests from. If using something like xunit, I believe you need to have the associated vstest runner referenced by the test project. - pinkfloydx33