Title: Make test suite independent of .git directory · Issue #304 · codecov/codecov-python · GitHub
Open Graph Title: Make test suite independent of .git directory · Issue #304 · codecov/codecov-python
X Title: Make test suite independent of .git directory · Issue #304 · codecov/codecov-python
Description: By simply removing the .git directory, tests will begin to fail (I got "12 failed, 38 passed, 20 skipped in 3.19s"). It seems like the suite is dependent on the .git directory of the source. ==============================================...
Open Graph Description: By simply removing the .git directory, tests will begin to fail (I got "12 failed, 38 passed, 20 skipped in 3.19s"). It seems like the suite is dependent on the .git directory of the source. ======...
X Description: By simply removing the .git directory, tests will begin to fail (I got "12 failed, 38 passed, 20 skipped in 3.19s"). It seems like the suite is dependent on the .git directory of the sour...
Opengraph URL: https://github.com/codecov/codecov-python/issues/304
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Make test suite independent of .git directory","articleBody":"By simply removing the .git directory, tests will begin to fail (I got \"12 failed, 38 passed, 20 skipped in 3.19s\"). It seems like the suite is dependent on the .git directory of the source.\r\n\r\n```\r\n=============================================== short test summary info ================================================\r\nFAILED tests/test.py::TestUploader::test_bowerrc - AttributeError: 'FileNotFoundError' object has no attribute 'retur...\r\nFAILED tests/test.py::TestUploader::test_bowerrc_none - AttributeError: 'FileNotFoundError' object has no attribute '...\r\nFAILED tests/test.py::TestUploader::test_disable_search - AttributeError: 'FileNotFoundError' object has no attribute...\r\nFAILED tests/test.py::TestUploader::test_discovers - AttributeError: 'FileNotFoundError' object has no attribute 'ret...\r\nFAILED tests/test.py::TestUploader::test_include_env - AttributeError: 'FileNotFoundError' object has no attribute 'r...\r\nFAILED tests/test.py::TestUploader::test_none_found - AttributeError: 'FileNotFoundError' object has no attribute 're...\r\nFAILED tests/test.py::TestUploader::test_not_jacoco - AttributeError: 'FileNotFoundError' object has no attribute 're...\r\nFAILED tests/test.py::TestUploader::test_prefix - AttributeError: 'FileNotFoundError' object has no attribute 'return...\r\nFAILED tests/test.py::TestUploader::test_read_token_file - AttributeError: 'FileNotFoundError' object has no attribut...\r\nFAILED tests/test.py::TestUploader::test_returns_none - SystemExit: 0\r\nFAILED tests/test.py::TestUploader::test_run_coverage_fails - AttributeError: 'FileNotFoundError' object has no attri...\r\nFAILED tests/test.py::TestUploader::test_send - AttributeError: 'FileNotFoundError' object has no attribute 'returncode'\r\n================================= 12 failed, 38 passed, 20 skipped, 1 warning in 8.09s =================================\r\n```\r\n\r\nUse Case: This happens if one downloads a release tarball (which doesn't include .git) and try to run the test suite. The situation happens when we try to include `codecov` in the FreeBSD Ports Collection - according to the FreeBSD Policy [1]: Python ports must include a do-test target if the package includes tests. We are currently removing failed tests manually, but would love to have this issue fixed upstream, so that the test suite will no longer depend on the .git directory.\r\n\r\nThis is essentially the same problem reported in #100.\r\n\r\n[1] https://wiki.freebsd.org/Python/PortsPolicy#Tests\r\n","author":{"url":"https://github.com/yzgyyang","@type":"Person","name":"yzgyyang"},"datePublished":"2020-11-24T11:13:29.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/304/codecov-python/issues/304"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:21e8e215-1adf-09ea-7c21-635b9494eb4c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E976:320E86:32CA27:4A2239:6A4E0435 |
| html-safe-nonce | b21809eb0bddd7d02bb13818562997cccebfe8fbd97921b3ca878810be72c50c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOTc2OjMyMEU4NjozMkNBMjc6NEEyMjM5OjZBNEUwNDM1IiwidmlzaXRvcl9pZCI6IjYwODc5Mjc3NzA4OTI4NjI1MTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 01926c0d67b896d11b88dabe21dbc5f8957847cd44ab7c2e3a8252ec0c230047 |
| hovercard-subject-tag | issue:749612647 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/codecov/codecov-python/304/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c01f743bfbfc8ce750da4baa0ca8aa31f5d9537877ce6bdabc35e12b10a13aa1/codecov/codecov-python/issues/304 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c01f743bfbfc8ce750da4baa0ca8aa31f5d9537877ce6bdabc35e12b10a13aa1/codecov/codecov-python/issues/304 |
| og:image:alt | By simply removing the .git directory, tests will begin to fail (I got "12 failed, 38 passed, 20 skipped in 3.19s"). It seems like the suite is dependent on the .git directory of the source. ======... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | yzgyyang |
| hostname | github.com |
| expected-hostname | github.com |
| None | df0492960db29b4938cb72070351d6b1d0c6c0767b27ceb8394bbf4fcc0223c6 |
| turbo-cache-control | no-preview |
| go-import | github.com/codecov/codecov-python git https://github.com/codecov/codecov-python.git |
| octolytics-dimension-user_id | 8226205 |
| octolytics-dimension-user_login | codecov |
| octolytics-dimension-repository_id | 22685735 |
| octolytics-dimension-repository_nwo | codecov/codecov-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 22685735 |
| octolytics-dimension-repository_network_root_nwo | codecov/codecov-python |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 52bde38e24398476f8eb1e0760c81346c6a00812 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width