我有一些码头化的由 Expecto 和 fscheck 框架编写的 F# 测试,作为 dotnet 核心独立可执行文件.
如何在 Team Foundation Server 上配置持续集成以运行它们并在每次运行后获取相应的报告?
如果您的意思是您已经拥有具有适当 SDK/环境的 docker 映像,那么您只需使用 CI 构建在 TFS 中运行该映像(配置持续集成 https://learn.microsoft.com/en-us/vsts/build-release/test/example-continuous-testing#configure-continuous-integration).
要运行该映像,您需要安装Docker集成 https://marketplace.visualstudio.com/items?itemName=ms-vscs-rm.docker扩展请参考使用 Visual Studio Team Services 构建、推送和运行 Docker 映像 https://blogs.msdn.microsoft.com/jcorioland/2016/08/19/build-push-and-run-docker-images-with-visual-studio-team-services/了解详情。
其他文章可能会有所帮助:
- 使用 VSTS 发布管理在 Docker 中运行 Selenium 测试 http://colinsalmcorner.com/post/running-selenium-tests-in-docker-using-vsts-release-management
- 如何在 Docker 容器中运行 .NET 单元测试 https://stackoverflow.com/questions/44252037/how-to-run-net-unit-tests-in-a-docker-container
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)