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

231 Views Asked by At

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?

2

There are 2 best solutions below

0
On

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.

2
On

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: