Need guidance to run tests when using CI/CD on VSTS
See original GitHub issueHi there, would be great if you could provide additional guidance for testing when using VSTS for CI/CD.
So far I have built the ‘unittest’ container and modified the dockerfile to include:
RUN dotnet test --logger "trx;LogFileName=TEST-unittest_results.xml"
I can see the tests being run and the file being created BUT how do I know get the file in VSTS and how to stop the build if there are failing tests? I have added the ‘Publish Test Results’ task but it doesn’t find the file. I’m guessing this is because the file is in the container vs the build environment.
I found this but cant seem to get it working (I’m guessing it is because I am using the Linux host).
Is there are more elegant way?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Run quality tests in your build pipeline by using Azure ...
Run unit tests locally and then in Azure Pipelines. Add dashboard widgets to visualize test runs over time. Perform code coverage testing to...
Read more >Run automated tests from test plans - Azure
Run automated tests on-demand against Team Foundation builds from test plans in the Test Manager with a build or release pipeline.
Read more >Automated Testing for CI/CD | TeamCity CI/CD Guide
The purpose of running automated tests as part of your CI/CD practice is to get rapid feedback on the changes that you have...
Read more >Enabling Continuous Integration with Azure Pipelines
In this lab, you will learn how to configure continuous integration (CI) and continuous deployment (CD) for your applications using Build and ...
Read more >How To Build a CI/CD Pipeline In Azure DevOps ?
In this blog, we will see how to build a CI/CD pipeline in Azure DevOps along with its integration with LambdaTest for bug...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi. I think there is a better approach:
[A bit of spam]: I wrote a blog post in my blog (in spanish) about the topic: https://geeks.ms/etomas/2018/03/07/ejecutar-pruebas-de-tus-contenedores-en-vsts/ It is centered on a simpler case (only one container) but is easily extensible to multi-container solution like eShop.
Anyway @CESARDELATORRE maybe we could create some wiki topic for this issue
Closing this issue.