问题
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