René's URL Explorer Experiment


Title: [TST]: increase unit test coverage · Issue #26864 · matplotlib/matplotlib · GitHub

Open Graph Title: [TST]: increase unit test coverage · Issue #26864 · matplotlib/matplotlib

X Title: [TST]: increase unit test coverage · Issue #26864 · matplotlib/matplotlib

Description: Problem Although we nominally support units through all of our plotting APIs, this is not through tested (unfortunately this is a case where code coverage is not super informative). The address this issue we would like to add a "smoke te...

Open Graph Description: Problem Although we nominally support units through all of our plotting APIs, this is not through tested (unfortunately this is a case where code coverage is not super informative). The address thi...

X Description: Problem Although we nominally support units through all of our plotting APIs, this is not through tested (unfortunately this is a case where code coverage is not super informative). The address thi...

Opengraph URL: https://github.com/matplotlib/matplotlib/issues/26864

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[TST]: increase unit test coverage ","articleBody":"# Problem\n\nAlthough we nominally support units through all of our plotting APIs, this is not through tested (unfortunately this is a case where code coverage is not super informative).   The address this issue we would like to add a \"smoke test\" (does it run without smoke coming out?) of every plotting method using \"unit-full\" data.  The most common \"unit-full\" data is likely datetime, thus we are going to use datetime and timedelta values as the vehicle to exhaustively test which of the methods correctly handle units.\n\nThis is the tracking issue for this work.\n\n# Process\n\n1. Fork Matplotlib and get set up for development. See https://matplotlib.org/devdocs/devel/contribute.html#contribute-code for detailed instructions of setting up a local or codespaces development environment.  For this work it is not strictly necessary to have a development version of Matplotlib installed, just an up-to-date installation (mpl 3.8.0) as the tested behavior _should_ be stable.\n2. Select a method to work on (for GHC OSD we will use slack and zoom to make sure we de-conflict!)\n3. Develop a short example that exercises passing dates or time deltas into the plotting methods.  Try to exercise as many of the inputs (and their combinations) as practical with the datetimes.\n    1. If you have a working example open a Pull request adding the example as a body to the correct test method in `lib/matplotlib/tests/test_datetime.py`. Please include an image of the generated plot in the description of the PR and cross reference this issue (by including `#26864` in the PR description body).  This is modeled for `ax.plot` (I took the easiest one ;) ) in #26859.\n    2. If you find a method that _should_ support datetime input but does not, open a new bug with the broken code and similarly reference this issue.\n    3. If passing datetime / united data to the method does not make any sense or it should not work open a PR removing that test method and similarly reference this issue.\n\n# Task list\n\n - [x] `Axes.acorr` #27427\n - [x] ~`Axes.angle_spectrum`~\n - [x] `Axes.annotate` #27222\n - [ ] `Axes.arrow` #27372\n - [x] `Axes.axhline` #27177\n - [x] `Axes.axhspan` #27139\n - [ ] `Axes.axline` #27326\n - [x] `Axes.axvline` #27208\n - [x] `Axes.axvspan` #27130 \n - [x] `Axes.bar` #27033\n - [x] `Axes.bar_label` #27431\n - [x] `Axes.barbs` #27331\n - [x] `Axes.barh` #27084\n - [ ] `Axes.boxplot` #27038\n - [x] `Axes.broken_barh` #27428\n - [x] `Axes.bxp` #27390\n - [ ] `Axes.clabel` #27490\n - [ ] ~`Axes.cohere`~\n - [x] `Axes.contour` #27013\n - [x] `Axes.contourf` #27024\n - [x] ~`Axes.csd`~\n - [x] `Axes.errorbar` #27185\n - [x] `Axes.eventplot` #27466\n - [x] `Axes.fill` #27401\n - [x] `Axes.fill_between` #27423 \n - [x] `Axes.fill_betweenx`#27425\n - [ ] `Axes.hexbin` #27475\n - [x] `Axes.hist`  #27028\n - [ ] `Axes.hist2d` #27418\n - [x] `Axes.hlines` #27211\n - [x] `Axes.imshow` #27476\n - [ ] `Axes.loglog` #27435\n - [x] ~`Axes.magnitude_spectrum`~\n - [x] `Axes.matshow` #27474 \n - [ ] `Axes.pcolor` #27391\n - [ ] `Axes.pcolorfast` #27450\n - [ ] `Axes.pcolormesh` #27433 \n - [x] ~`Axes.phase_spectrum`~\n - [x] `Axes.pie` #27117\n - [x] `Axes.plot`\n - [x] `Axes.plot_date` #27037\n - [x] ~`Axes.psd`~\n - [ ] `Axes.quiver` #27407\n - [x] `Axes.quiverkey` #27449\n - [x] `Axes.scatter` #26882\n - [ ] `Axes.semilogx` #27320\n - [ ] `Axes.semilogy` #27320\n - [x] ~`Axes.specgram`~\n - [x] ~`Axes.spy`~ #27392\n - [x] `Axes.stackplot` #27114\n - [x] `Axes.stairs`#27424\n - [x] `Axes.stem` #27135\n - [x] `Axes.step` #27091 \n - [ ] `Axes.streamplot` #27489\n - [x] ~`Axes.table`~\n - [x] `Axes.text` #27142\n - [ ] `Axes.tricontour` #27494\n - [ ] `Axes.tricontourf` #27487\n - [ ] `Axes.tripcolor` #27491\n - [ ] `Axes.triplot` #27488\n - [x] `Axes.violin` #30384\n - [ ] `Axes.violinplot` #27521\n - [x] `Axes.vlines` #27410\n - [x] `Axes.xcorr` #27427\n","author":{"url":"https://github.com/tacaswell","@type":"Person","name":"tacaswell"},"datePublished":"2023-09-21T21:45:12.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":67},"url":"https://github.com/26864/matplotlib/issues/26864"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:b0f7a626-16bf-de2c-dc55-eb076ecb7d95
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id969A:28C211:37BB29:4BCDEC:6A5142A0
html-safe-noncea72f2bca2a11259c5b0ff2aea83ce3906a615a3e946b2a98244ddaf3b7fe42a0
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NjlBOjI4QzIxMTozN0JCMjk6NEJDREVDOjZBNTE0MkEwIiwidmlzaXRvcl9pZCI6IjM4MDI5MzE1NDUwOTE2ODcwNzIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1d15fc1f95a3454bdfe77a561f43b8fc0edbc24f5f87c4ae10b391ab517f7f02
hovercard-subject-tagissue:1907811394
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/matplotlib/matplotlib/26864/issue_layout
twitter:imagehttps://opengraph.githubassets.com/18c28b30e86e5d6258571e6f21bb14b485975a8305e02e2b18c32b3fa548cf9a/matplotlib/matplotlib/issues/26864
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/18c28b30e86e5d6258571e6f21bb14b485975a8305e02e2b18c32b3fa548cf9a/matplotlib/matplotlib/issues/26864
og:image:altProblem Although we nominally support units through all of our plotting APIs, this is not through tested (unfortunately this is a case where code coverage is not super informative). The address thi...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametacaswell
hostnamegithub.com
expected-hostnamegithub.com
Nonee840f405b2718e8f2d55aafa9ff27dbce17e29d0c253011d05ea0fea3c78baff
turbo-cache-controlno-preview
go-importgithub.com/matplotlib/matplotlib git https://github.com/matplotlib/matplotlib.git
octolytics-dimension-user_id215947
octolytics-dimension-user_loginmatplotlib
octolytics-dimension-repository_id1385122
octolytics-dimension-repository_nwomatplotlib/matplotlib
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id1385122
octolytics-dimension-repository_network_root_nwomatplotlib/matplotlib
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releaseb78565f6aa43cc5323c9935ec11b22cca7bb0a62
ui-targetcanary-2
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/matplotlib/matplotlib/issues/26864#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F26864
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fmatplotlib%2Fmatplotlib%2Fissues%2F26864
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=matplotlib%2Fmatplotlib
Reloadhttps://github.com/matplotlib/matplotlib/issues/26864
Reloadhttps://github.com/matplotlib/matplotlib/issues/26864
Reloadhttps://github.com/matplotlib/matplotlib/issues/26864
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/26864
matplotlib https://github.com/matplotlib
matplotlibhttps://github.com/matplotlib/matplotlib
Please reload this pagehttps://github.com/matplotlib/matplotlib/issues/26864
Notifications https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Fork 8.4k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Star 23k https://github.com/login?return_to=%2Fmatplotlib%2Fmatplotlib
Code https://github.com/matplotlib/matplotlib
Issues 1.1k https://github.com/matplotlib/matplotlib/issues
Pull requests 408 https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality 0 https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
Code https://github.com/matplotlib/matplotlib
Issues https://github.com/matplotlib/matplotlib/issues
Pull requests https://github.com/matplotlib/matplotlib/pulls
Actions https://github.com/matplotlib/matplotlib/actions
Projects https://github.com/matplotlib/matplotlib/projects
Wiki https://github.com/matplotlib/matplotlib/wiki
Security and quality https://github.com/matplotlib/matplotlib/security
Insights https://github.com/matplotlib/matplotlib/pulse
[TST]: increase unit test coverage https://github.com/matplotlib/matplotlib/issues/26864#top
mentored: hackathonhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22mentored%3A%20hackathon%22
topic: testinghttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20testing%22
topic: units and array ducktypeshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20units%20and%20array%20ducktypes%22
future releaseshttps://github.com/matplotlib/matplotlib/milestone/25
https://github.com/tacaswell
tacaswellhttps://github.com/tacaswell
on Sep 21, 2023https://github.com/matplotlib/matplotlib/issues/26864#issue-1907811394
https://matplotlib.org/devdocs/devel/contribute.html#contribute-codehttps://matplotlib.org/devdocs/devel/contribute.html#contribute-code
Add datetime testing skeleton #26859https://github.com/matplotlib/matplotlib/pull/26859
MNT/TST: remove xcorr and acorr from test_datetime #27427https://github.com/matplotlib/matplotlib/pull/27427
[TST] Added test_annotate in test_datetime.py #27222https://github.com/matplotlib/matplotlib/pull/27222
[TST] Added test_arrow in test_datetime.py #27372https://github.com/matplotlib/matplotlib/pull/27372
Add test_axhline in test_datetime.py #27177https://github.com/matplotlib/matplotlib/pull/27177
added test_axhspan in test_datetime.py #27139https://github.com/matplotlib/matplotlib/pull/27139
[TST] Added test_axlines in test_datetime.py #27326https://github.com/matplotlib/matplotlib/pull/27326
Add test_axvline to test_datetime.py #27208https://github.com/matplotlib/matplotlib/pull/27208
added test_axvspan in test.datetime.py #27130https://github.com/matplotlib/matplotlib/pull/27130
Add test_bar in test_datetime #27033https://github.com/matplotlib/matplotlib/pull/27033
Added test for Axes.bar_label #27431https://github.com/matplotlib/matplotlib/pull/27431
Added smoke test for Axes.barbs in test_datetime.py #27331https://github.com/matplotlib/matplotlib/pull/27331
Add test_barh to test_datetime.py #27084https://github.com/matplotlib/matplotlib/pull/27084
Add datetime testing for boxplot #27038https://github.com/matplotlib/matplotlib/pull/27038
Added test for broken_barh to test_datetime.py #27428https://github.com/matplotlib/matplotlib/pull/27428
Add test_bxp in test_datetime.py #27390https://github.com/matplotlib/matplotlib/pull/27390
Defined the test_clabel function in the test_datetime file #27490https://github.com/matplotlib/matplotlib/pull/27490
Add test_contour under test_datetime.py #27013https://github.com/matplotlib/matplotlib/pull/27013
Add test_contourf in test_datetime.py #27024https://github.com/matplotlib/matplotlib/pull/27024
Added smoke tests for Axes.errorbar in test_datetime.py #27185https://github.com/matplotlib/matplotlib/pull/27185
Add test_eventplot to test_datetime.py #27466https://github.com/matplotlib/matplotlib/pull/27466
Add test_fill in test_datetime.py #27401https://github.com/matplotlib/matplotlib/pull/27401
Add test for fill_between in test_datetime.py #27423https://github.com/matplotlib/matplotlib/pull/27423
Added test_fill_betweenx in test_datetime.py  #27425https://github.com/matplotlib/matplotlib/pull/27425
Added datetime smoke test for Axes.hexbin #27475https://github.com/matplotlib/matplotlib/pull/27475
Added test_hist in test_datetime.py #27028https://github.com/matplotlib/matplotlib/pull/27028
Added test_hist2d #27418https://github.com/matplotlib/matplotlib/pull/27418
Add test_hlines to test_datetimes.py #27211https://github.com/matplotlib/matplotlib/pull/27211
Added smoke test for Axes.imshow to test_datetime.py #27476https://github.com/matplotlib/matplotlib/pull/27476
Added test_loglog in test_datetime.py #27435https://github.com/matplotlib/matplotlib/pull/27435
Added smoke test for Axes.matshow to test_datetime.py #27474https://github.com/matplotlib/matplotlib/pull/27474
Added test_pcolor in test_datetime.py #27391https://github.com/matplotlib/matplotlib/pull/27391
Attempted to add test_pcolorfast in test_datetime.py #27450https://github.com/matplotlib/matplotlib/pull/27450
Added test_pcolormesh in test_datetime.py #27433https://github.com/matplotlib/matplotlib/pull/27433
Remove datetime test for axes.pie #27117https://github.com/matplotlib/matplotlib/pull/27117
add test_plot_date in test_datetime.py #27037https://github.com/matplotlib/matplotlib/pull/27037
Add test_quiver in test_datetime.py #27407https://github.com/matplotlib/matplotlib/pull/27407
Remove test_quiverkey from test_datetime.py #27449https://github.com/matplotlib/matplotlib/pull/27449
Add scatter test for datetime units #26882https://github.com/matplotlib/matplotlib/pull/26882
Add test_semilogx and test_semilogy tests to test_datetime #27320https://github.com/matplotlib/matplotlib/pull/27320
Add test_semilogx and test_semilogy tests to test_datetime #27320https://github.com/matplotlib/matplotlib/pull/27320
Remove test_spy from test_datetime.py #27392https://github.com/matplotlib/matplotlib/pull/27392
add test_stackplot in test_datetime.py #27114https://github.com/matplotlib/matplotlib/pull/27114
Added Axes.stairs test in test_datetime.py #27424https://github.com/matplotlib/matplotlib/pull/27424
Added smoke test for Axes.stem #27135https://github.com/matplotlib/matplotlib/pull/27135
Add test_step to test_datetime.py #27091https://github.com/matplotlib/matplotlib/pull/27091
Adding test for axes.streamplot using datetime #27489https://github.com/matplotlib/matplotlib/pull/27489
Added smoke test for Axes.text in test_datetime.py #27142https://github.com/matplotlib/matplotlib/pull/27142
Added test for tricontour in test_datetime.py #27494https://github.com/matplotlib/matplotlib/pull/27494
Added Axes.tricontourf Datetime Test #27487https://github.com/matplotlib/matplotlib/pull/27487
test_tripcolor (Issue #26864) plots with datetime on x-axis only , y-axis only, and both x- and y-axis #27491https://github.com/matplotlib/matplotlib/pull/27491
Added DateTime Test for triplot #27488https://github.com/matplotlib/matplotlib/pull/27488
Add datetime test for ax.violin #30384https://github.com/matplotlib/matplotlib/pull/30384
Add axes.violinplot test from test_datetime.py #27521https://github.com/matplotlib/matplotlib/pull/27521
Add test_vlines to test_datetime.py #27410https://github.com/matplotlib/matplotlib/pull/27410
MNT/TST: remove xcorr and acorr from test_datetime #27427https://github.com/matplotlib/matplotlib/pull/27427
mentored: hackathonhttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22mentored%3A%20hackathon%22
topic: testinghttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20testing%22
topic: units and array ducktypeshttps://github.com/matplotlib/matplotlib/issues?q=state%3Aopen%20label%3A%22topic%3A%20units%20and%20array%20ducktypes%22
future releasesNo due datehttps://github.com/matplotlib/matplotlib/milestone/25
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.