Title: Configure testing suite · Issue #3 · usethis-python/usethis-python · GitHub
Open Graph Title: Configure testing suite · Issue #3 · usethis-python/usethis-python
X Title: Configure testing suite · Issue #3 · usethis-python/usethis-python
Description: Motivation Testing is a non-negotiable part of developing reliable software. Summary of desired feature A test suite and associated CI configuration set up for the project. Design The tests will be run using pytest. The test suite will l...
Open Graph Description: Motivation Testing is a non-negotiable part of developing reliable software. Summary of desired feature A test suite and associated CI configuration set up for the project. Design The tests will be...
X Description: Motivation Testing is a non-negotiable part of developing reliable software. Summary of desired feature A test suite and associated CI configuration set up for the project. Design The tests will be...
Opengraph URL: https://github.com/usethis-python/usethis-python/issues/3
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Configure testing suite","articleBody":"**Motivation**\r\nTesting is a non-negotiable part of developing reliable software.\r\n\r\n**Summary of desired feature**\r\nA test suite and associated CI configuration set up for the project.\r\n\r\n**Design**\r\n\r\n- The tests will be run using pytest.\r\n- The test suite will live in the `tests` directory.\r\n- uv will be used to install pytest and manage dependencies.\r\n\r\n**Describe alternatives you've considered**\r\n- I haven't considered any other testing frameworks than pytest.\r\n- I have found it interesting when working on [pins-python](https://github.com/rstudio/pins-python) that the `tests` folder was inside the package folder. This supports a more modular approach suitable for monorepos, but I don't think it's necessary for this project and quite unconventional.\r\n- Managing dependencies could be done with rye. However, uv is already basically fit for purpose, even though its lockfiles etc. are quite experimental.\r\n\r\n**Testing Strategy**\r\nI would be able to see a successful CI pipeline which runs the testing suite.\r\n\r\n**Steps**\r\n- Configure the project with uv.\r\n- Create a dummy test which just passes trivially.\r\n- Confirm that pytest runs the test successfully from the CLI\r\n- Set up GitHub actions CI pipeline to run pytest on multiple OSs.\r\n\r\n**Acceptance Criteria**\r\nThe CI needs to be able to run at least one test.","author":{"url":"https://github.com/nathanjmcdougall","@type":"Person","name":"nathanjmcdougall"},"datePublished":"2024-08-14T01:35:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3/usethis-python/issues/3"}
| 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:777b5c84-d8c6-5f08-405f-5a53bfb85da4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B3CC:316D26:D872B6:137C954:6A4CC349 |
| html-safe-nonce | 2f41a20c243826d9aeef0f3af4a477d08ab0513d0cb0b4d267590a97f7d0db6a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCM0NDOjMxNkQyNjpEODcyQjY6MTM3Qzk1NDo2QTRDQzM0OSIsInZpc2l0b3JfaWQiOiIxMTQ2MjA0OTQwOTE0MzY4NzMiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5e5c445ca4745c4ec94c07f802a32b85564d6dcbf61a28eea2e0cc96d932178b |
| hovercard-subject-tag | issue:2464708565 |
| 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/usethis-python/usethis-python/3/issue_layout |
| twitter:image | https://opengraph.githubassets.com/81238b5e1a78ea9904627eb12f38efe2cda64777b6f15b9e3da359175d618639/usethis-python/usethis-python/issues/3 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/81238b5e1a78ea9904627eb12f38efe2cda64777b6f15b9e3da359175d618639/usethis-python/usethis-python/issues/3 |
| og:image:alt | Motivation Testing is a non-negotiable part of developing reliable software. Summary of desired feature A test suite and associated CI configuration set up for the project. Design The tests will be... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | nathanjmcdougall |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/usethis-python/usethis-python git https://github.com/usethis-python/usethis-python.git |
| octolytics-dimension-user_id | 216362695 |
| octolytics-dimension-user_login | usethis-python |
| octolytics-dimension-repository_id | 842189705 |
| octolytics-dimension-repository_nwo | usethis-python/usethis-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 842189705 |
| octolytics-dimension-repository_network_root_nwo | usethis-python/usethis-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 | c03e7e569190bc89b638cdd4acb4b6c6b38a170a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width