{"action":"created","issue":{"url":"https://api.github.com/repos/tonerdo/coverlet/issues/25","repository_url":"https://api.github.com/repos/tonerdo/coverlet","labels_url":"https://api.github.com/repos/tonerdo/coverlet/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/tonerdo/coverlet/issues/25/comments","events_url":"https://api.github.com/repos/tonerdo/coverlet/issues/25/events","html_url":"https://github.com/tonerdo/coverlet/issues/25","id":311226727,"number":25,"title":"BUG: File locking","user":{"login":"pms1969","id":2762128,"avatar_url":"https://avatars2.githubusercontent.com/u/2762128?v=4","gravatar_id":"","url":"https://api.github.com/users/pms1969","html_url":"https://github.com/pms1969","followers_url":"https://api.github.com/users/pms1969/followers","following_url":"https://api.github.com/users/pms1969/following{/other_user}","gists_url":"https://api.github.com/users/pms1969/gists{/gist_id}","starred_url":"https://api.github.com/users/pms1969/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pms1969/subscriptions","organizations_url":"https://api.github.com/users/pms1969/orgs","repos_url":"https://api.github.com/users/pms1969/repos","events_url":"https://api.github.com/users/pms1969/events{/privacy}","received_events_url":"https://api.github.com/users/pms1969/received_events","type":"User","site_admin":false},"labels":[{"id":822749632,"url":"https://api.github.com/repos/tonerdo/coverlet/labels/bug","name":"bug","color":"d73a4a","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-04-04T13:20:13Z","updated_at":"2018-04-09T12:44:59Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"My coverage script does the following:\r\n```\r\n...\r\n# Run the tests\r\n    for testproj in $(ls tests/*.Tests -d | grep -v Integration); do \r\n        echo ${testproj}; \r\n        set +e\r\n        time \\\r\n            dotnet test \\\r\n                --no-build \\\r\n                --no-restore \\\r\n                --filter \"TestCategory!=Integration\" \\\r\n                --logger:trx \\\r\n                -r ${base_dir}/.output/ \\\r\n                $testproj \\\r\n                /nowarn:NU1701,NU1603,NU1605 \\\r\n                /p:CollectCoverage=true \\\r\n                /p:CoverletOutputFormat=opencover\r\n        cname=$(basename $testproj)\r\n        cp ${testproj}/coverage.xml ${base_dir}/.output/$cname-coverage.xml\r\n        set -e\r\n    done\r\n...\r\n```\r\n\r\nThis works perfectly well for the most part, but I see the following error randomly in different parts of the output on each run:\r\n```\r\n...\r\nTotal tests: 18. Passed: 18. Failed: 0. Skipped: 0.\r\nTest Run Successful.\r\nTest execution time: 4.4549 Seconds\r\nResults File: /tmp/build/5128ae76/.output/_161d9565-a576-4c2a-7fe5-1bb0ae8a6598_2018-04-04_12_54_05.trx\r\n\r\nCalculating coverage result...\r\n/tmp/build/5128ae76/source-code-core/packages/coverlet.msbuild/1.0.3-beta1/build/netstandard2.0/coverlet.msbuild.targets(19,5): error : The process cannot access the file '/tmp/build/5128ae76/source-code-core/tests/Diagnostics.Tests/bin/Debug/netcoreapp2.0/MyAssemblyDependency.dll' because it is being used by another process. [/tmp/build/5128ae76/source-code-core/tests/Diagnostics.Tests/Diagnostics.Tests.csproj]\r\n\r\nreal\t0m6.404s\r\nuser\t0m2.980s\r\nsys\t0m0.280s\r\ncp: cannot stat 'tests/Diagnostics.Tests/coverage.xml': No such file or directory\r\n```\r\n\r\nAny ideas?\r\n\r\nCheers,\r\nPaul\r\n\r\n**NB:** coverlet-1.0.3-beta1 is a build of the current master so as to capture the change from PR #23 and hosted in a local nuget repo."},"comment":{"url":"https://api.github.com/repos/tonerdo/coverlet/issues/comments/379738908","html_url":"https://github.com/tonerdo/coverlet/issues/25#issuecomment-379738908","issue_url":"https://api.github.com/repos/tonerdo/coverlet/issues/25","id":379738908,"user":{"login":"pms1969","id":2762128,"avatar_url":"https://avatars2.githubusercontent.com/u/2762128?v=4","gravatar_id":"","url":"https://api.github.com/users/pms1969","html_url":"https://github.com/pms1969","followers_url":"https://api.github.com/users/pms1969/followers","following_url":"https://api.github.com/users/pms1969/following{/other_user}","gists_url":"https://api.github.com/users/pms1969/gists{/gist_id}","starred_url":"https://api.github.com/users/pms1969/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pms1969/subscriptions","organizations_url":"https://api.github.com/users/pms1969/orgs","repos_url":"https://api.github.com/users/pms1969/repos","events_url":"https://api.github.com/users/pms1969/events{/privacy}","received_events_url":"https://api.github.com/users/pms1969/received_events","type":"User","site_admin":false},"created_at":"2018-04-09T12:44:58Z","updated_at":"2018-04-09T12:44:58Z","author_association":"CONTRIBUTOR","body":"@sampwil would you be able to test that PR and see if you still get the issue.  Looks like it worked locally for me, but it's always hard to tell if it has actually resolved in cases like this.  I'm having some unrelated other system issues as well, so confirmation from another source would be desirable."}}
{"actor":{"display_login":"pms1969"}}