{"action":"created","issue":{"url":"https://api.github.com/repos/tonerdo/coverlet/issues/16","repository_url":"https://api.github.com/repos/tonerdo/coverlet","labels_url":"https://api.github.com/repos/tonerdo/coverlet/issues/16/labels{/name}","comments_url":"https://api.github.com/repos/tonerdo/coverlet/issues/16/comments","events_url":"https://api.github.com/repos/tonerdo/coverlet/issues/16/events","html_url":"https://github.com/tonerdo/coverlet/issues/16","id":308365753,"number":16,"title":"System.BadImageFormatException when code coverage is enabled.","user":{"login":"sesispla","id":8591052,"avatar_url":"https://avatars0.githubusercontent.com/u/8591052?v=4","gravatar_id":"","url":"https://api.github.com/users/sesispla","html_url":"https://github.com/sesispla","followers_url":"https://api.github.com/users/sesispla/followers","following_url":"https://api.github.com/users/sesispla/following{/other_user}","gists_url":"https://api.github.com/users/sesispla/gists{/gist_id}","starred_url":"https://api.github.com/users/sesispla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sesispla/subscriptions","organizations_url":"https://api.github.com/users/sesispla/orgs","repos_url":"https://api.github.com/users/sesispla/repos","events_url":"https://api.github.com/users/sesispla/events{/privacy}","received_events_url":"https://api.github.com/users/sesispla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-25T16:53:52Z","updated_at":"2018-03-26T21:44:53Z","closed_at":null,"author_association":"NONE","body":"I am trying to add code coverage to [kubernetes-client-csharp](https://github.com/kubernetes-client/csharp/issues/16).\r\n\r\nDesperate of not having official support from Microsoft I am giving a try to coverlet. I've created a feature branch from project's master and added Coverlet (everything fine in [Travis](https://travis-ci.org/sesispla/kubernetes-client-csharp/builds/358090639) so far.\r\n\r\nBut, as soon as I enable the \"/p:CollectCoverage=true\", I start receiving the following error in 80% of tests we execute:\r\n\r\n```\r\n[xUnit.net 00:00:01.7251872]       System.BadImageFormatException : [/home/travis/build/sesispla/kubernetes-client-csharp/tests/bin/Debug/netcoreapp2.0/KubernetesClient.dll] No string associated with token.\r\n```\r\nFull log from [faulty TravisCI job](https://travis-ci.org/sesispla/kubernetes-client-csharp/builds/358096360) \r\n\r\nWe're currently invoking the code coverage with this bash script:\r\n\r\n```bash\r\n#!/usr/bin/env bash\r\n\r\n# Exit on any error\r\nset -e\r\n\r\n# Ensure no compile errors in all projects\r\ndotnet restore\r\ndotnet build --no-restore\r\n\r\n# Execute Unit tests\r\ncd tests\r\ndotnet test --no-restore --no-build /p:CollectCoverage=true /p:CoverletOutputFormat=lcov /p:CoverletOutput=./lcov.info\r\nif [[ $? != 0 ]]; then\r\n    exit 1\r\nfi\r\n```\r\n\r\nAlso happens locally with MacOS 10.12.6 High Sierra.\r\n\r\nIf I set `/p:CollectCoverage=false` tests passes properly in both [TravisCI](https://travis-ci.org/sesispla/kubernetes-client-csharp/builds/358099882) and locally.\r\n\r\nAny clue on what's going on?\r\n\r\nThanks you!"},"comment":{"url":"https://api.github.com/repos/tonerdo/coverlet/issues/comments/376322308","html_url":"https://github.com/tonerdo/coverlet/issues/16#issuecomment-376322308","issue_url":"https://api.github.com/repos/tonerdo/coverlet/issues/16","id":376322308,"user":{"login":"sesispla","id":8591052,"avatar_url":"https://avatars0.githubusercontent.com/u/8591052?v=4","gravatar_id":"","url":"https://api.github.com/users/sesispla","html_url":"https://github.com/sesispla","followers_url":"https://api.github.com/users/sesispla/followers","following_url":"https://api.github.com/users/sesispla/following{/other_user}","gists_url":"https://api.github.com/users/sesispla/gists{/gist_id}","starred_url":"https://api.github.com/users/sesispla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sesispla/subscriptions","organizations_url":"https://api.github.com/users/sesispla/orgs","repos_url":"https://api.github.com/users/sesispla/repos","events_url":"https://api.github.com/users/sesispla/events{/privacy}","received_events_url":"https://api.github.com/users/sesispla/received_events","type":"User","site_admin":false},"created_at":"2018-03-26T21:44:53Z","updated_at":"2018-03-26T21:44:53Z","author_association":"NONE","body":"AFAIK, not yet. This is a [pending task](https://github.com/kubernetes-client/csharp/issues/70)."}}
{"actor":{"display_login":"sesispla"}}