{"id":20414557,"url":"https://github.com/codecov/example-fsharp","last_synced_at":"2026-02-23T09:47:11.139Z","repository":{"id":66039628,"uuid":"116717242","full_name":"codecov/example-fsharp","owner":"codecov","description":"Example of codecov in fsharp","archived":false,"fork":false,"pushed_at":"2024-01-22T21:36:06.000Z","size":20,"stargazers_count":6,"open_issues_count":0,"forks_count":5,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-10-19T23:48:16.793Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"F#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/codecov.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-01-08T19:14:02.000Z","updated_at":"2024-08-02T15:39:27.000Z","dependencies_parsed_at":"2024-11-15T12:16:45.591Z","dependency_job_id":null,"html_url":"https://github.com/codecov/example-fsharp","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/codecov/example-fsharp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-fsharp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-fsharp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-fsharp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-fsharp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codecov","download_url":"https://codeload.github.com/codecov/example-fsharp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codecov%2Fexample-fsharp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29741144,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T07:44:07.782Z","status":"ssl_error","status_checked_at":"2026-02-23T07:44:07.432Z","response_time":90,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-15T06:11:02.899Z","updated_at":"2026-02-23T09:47:11.121Z","avatar_url":"https://github.com/codecov.png","language":"F#","readme":"# Codecov F# Example\n\n| [https://codecov.io](https://codecov.io/) | [@codecov](https://twitter.com/codecov) | [hello@codecov.io](mailto:hello@codecov.io) |\n| ----------------------- | ------------- | --------------------- |\n\n[![Build status](https://ci.appveyor.com/api/projects/status/te04aqtjuv4anakr?svg=true)](https://ci.appveyor.com/project/MNie/codecov-fsharp)\n[![codecov](https://codecov.io/gh/MNie/codecov-fsharp/branch/master/graph/badge.svg)](https://codecov.io/gh/MNie/codecov-fsharp)\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fexample-fsharp.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fexample-fsharp?ref=badge_shield)\n\n## Solution\n\nStart by restoring the nuget packages and building the solution.\n\n## Generate the Coverage File\n\nCoverage is generated using [OpenCover](https://github.com/OpenCover/opencover). You can obtain it from [NuGet](https://www.nuget.org/packages/opencover) or [Chocolatey](https://chocolatey.org/packages/opencover.portable). If we run the following command in PowerShell to install OpenCover via Chocolatey, \n\n```powershell\nchoco install opencover.portable\n```\n\nthe OpenCover commandline will become available.\n\nGeneration of coverage report is slighly different depending on the .NET platform of your test projects.\n\n### .NET Framework project\n\n#### xUnit\n\nFirst install the xUnit console runner via [Nuget](https://www.nuget.org/packages/xunit.runner.console/2.3.0-beta1-build3642) or [Chocolatey](https://chocolatey.org/packages/XUnit). If we run the following in PowerShell to install xUnit via Chocolatey\n\n```powershell\nchoco install xunit\n```\n\nand execute the following in your solution's root,\n\n```powershell\nOpenCover.Console.exe -register:user -target:\"xunit.console.x86.exe\" -targetargs:\".\\test\\CodecovExample.Tests\\bin\\Debug\\CodecovExample.Tests.dll -noshadow\" -filter:\"+[CodecovExample.TargetProject*]* -[CodecovExample.Tests*]*\" -output:\".\\CodecovExample-FSharp.xml\"\n```\n\nThen a coverage report will be generated.\n\n### .NET Core project\n\n[Issue](https://github.com/OpenCover/opencover/issues/787)\n\n## Uploading Report\n\nMany options exit for uploading reports to Codecov. Three commonly used uploaders for .NET are\n\n1. [Codecov-exe](https://github.com/codecov/codecov-exe) (C# source code)\n2. [Bash](https://github.com/codecov/codecov-bash)\n3. [Python](https://github.com/codecov/codecov-python)\n\nFor OS X and Linux builds, the recommended uploader is bash. For windows builds, all three uploaders work, but Codecov-exe does not require any dependencies. For example, the bash uploader and python uploader would require bash or python to be installed. This may or may not be an option.\n\n### Codecov-exe\n\nFirst install Codecov-exe via [Nuget](https://www.nuget.org/packages/Codecov/) or [Chocolatey](https://chocolatey.org/packages/codecov). If we run the following in PowerShell to install it via Chocolatey\n\n```powershell\nchoco install codecov\n```\n\nand then run the following in PowerShell\n\n```\n.\\codecov -f \"CodecovExample-FSharp.xml\" -t \u003cyour upload token\u003e\n```\n\nthe report will be uploaded.\n\n### Bash\n\nIn bash run the following to upload the report\n\n```bash\ncurl -s https://codecov.io/bash \u003e codecov\nchmod +x codecov\n./codecov -f \"CodecovExample-FSharp.xml\" -t \u003cyour upload token\u003e\n```\n\n### Python\n \nFirst installed python (if you don't have it already). A simple way to install python is [Chocolatey](https://chocolatey.org/packages/python)\n\n```powershell\nchoco install python\n```\n\nNext run the following in PowerShell\n\n```\npip install codecov\n.\\codecov -f \"CodecovExample-FSharp.xml\" -t \u003cyour upload token\u003e\n```\n\n### Continous Integration\n\nThe previous examples assumed local development. More commonly, you'll use a CI service like [AppVeyor](https://www.appveyor.com/) or [TeamCity](https://www.jetbrains.com/teamcity/). For TeamCity builds please see the [documentation](https://github.com/codecov/codecov-exe#teamcity). For AppVeyor builds using xUnit, your yaml file would look something like\n\n#### Codecov-exe using Chocolatey\n\n```yaml\nimage: Visual Studio 2017\n\nbefore_build:\n- nuget restore\n- choco install opencover.portable\n- choco install codecov\n\nbuild:\n  project: CodecovExample.sln\n  verbosity: minimal\n\ntest_script:\n- OpenCover.Console.exe -register:user -target:\"%xunit20%\\xunit.console.x86.exe\" -targetargs:\".\\test\\CodecovExample.Tests\\bin\\Debug\\CodecovExample.Tests.dll -noshadow\" -filter:\"+[CodecovExample.TargetProject*]* -[CodecovExample.Tests*]*\" -output:\".\\CodecovExample-FSharp.xml\"\n- codecov -f \"CodecovExample-FSharp.xml\"\n```\n\n#### Codecov-exe using NuGet\n\nUsing this method you can cache your packages.config file.\n\n```yaml\nimage: Visual Studio 2017\n\nbefore_build:\n- nuget restore\n\nbuild:\n  project: CodecovExample.sln\n  verbosity: minimal\n\ntest_script:\n- .\\packages\\\u003cADD PATH\u003e\\OpenCover.Console.exe -register:user -target:\"%xunit20%\\xunit.console.x86.exe\" -targetargs:\".\\test\\CodecovExample.Tests\\bin\\Debug\\CodecovExample.Tests.dll -noshadow\" -filter:\"+[CodecovExample.TargetProject*]* -[CodecovExample.Tests*]*\" -output:\".\\CodecovExample-FSharp.xml\"\n- .\\packages\\\u003cADD PATH\u003e\\codecov.exe -f \"CodecovExample-FSharp.xml\"\n```\n\n#### Python\n\n```yaml\nimage: Visual Studio 2017\n\nbefore_build:\n- nuget restore\n- choco install opencover.portable\n\nbuild:\n  project: CodecovExample.sln\n  verbosity: minimal\n\ntest_script:\n- OpenCover.Console.exe -register:user -target:\"%xunit20%\\xunit.console.x86.exe\" -targetargs:\".\\test\\CodecovExample.Tests\\bin\\Debug\\CodecovExample.Tests.dll -noshadow\" -filter:\"+[CodecovExample.TargetProject*]* -[CodecovExample.Tests*]*\" -output:\".\\CodecovExample-FSharp.xml\"\n- \"SET PATH=C:\\\\Python34;C:\\\\Python34\\\\Scripts;%PATH%\"\n- pip install codecov\n- codecov -f \"CodecovExample-FSharp.xml\"\n```\n\n## Fake\n\nIf you use [Fake](https://github.com/fsharp/FAKE) (F# Make) for your build automation there is a support for [OpenCover](https://github.com/fsharp/FAKE/tree/master/src/app/Fake.DotNet.Testing.OpenCover).\n\n## Cake\n\nIf you use [Cake](http://cakebuild.net/) (C# Make) for your build automation, there is a [Cake.Codecov](http://cakebuild.net/dsl/codecov/) addin available. Cake also has built in support for [OpenCover](http://cakebuild.net/dsl/opencover/).\n\nWe are happy to help if you have any questions. Please contact email our Support at [support@codecov.io](mailto:support@codecov.io)\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fcodecov%2Fexample-fsharp.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Fcodecov%2Fexample-fsharp?ref=badge_large)","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecov%2Fexample-fsharp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecov%2Fexample-fsharp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecov%2Fexample-fsharp/lists"}