How to configure CI for dockerized F# Expecto tests on TFS

徘徊边缘 提交于 2019-12-24 06:22:46

问题


I have some dockerized F# tests written by expecto and fscheck frameworks, as a dotnet core standalone executable.

How to configure continuous integration on Team Foundation Server to run them and get the report after each run accordingly?


回答1:


If you mean you already have the docker image which has the proper SDK/envirement, then you just need to run the image in TFS with CI build (Configure continuous integration).

To run the image, you need to install the Docker Integration extension, please refer to Build, push and run Docker images with Visual Studio Team Services for details.

Other articles may help:

  • Running Selenium Tests in Docker using VSTS Release Management
  • How to run .NET unit tests in a docker container



回答2:


Configure Expecto to output NUnit-equivalent XML files with https://www.nuget.org/packages/Expecto.TestResults/

The docs are here https://github.com/haf/expecto/#testresults-file

Then just run the executable and have the CI server pick up the outputted XML file.



来源:https://stackoverflow.com/questions/48261711/how-to-configure-ci-for-dockerized-f-expecto-tests-on-tfs

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!