René's URL Explorer Experiment


Title: Change the bulk of our tests to "true" unit tests, and kill the fake database · Issue #2476 · coder/coder · GitHub

Open Graph Title: Change the bulk of our tests to "true" unit tests, and kill the fake database · Issue #2476 · coder/coder

X Title: Change the bulk of our tests to "true" unit tests, and kill the fake database · Issue #2476 · coder/coder

Description: Problem Now that we have embedded postgres, the fake database is not needed for quick local environments, and the main purpose is testing. However, we have to do some nasty stuff, (#2473) to keep it working, and because it is not postgre...

Open Graph Description: Problem Now that we have embedded postgres, the fake database is not needed for quick local environments, and the main purpose is testing. However, we have to do some nasty stuff, (#2473) to keep i...

X Description: Problem Now that we have embedded postgres, the fake database is not needed for quick local environments, and the main purpose is testing. However, we have to do some nasty stuff, (#2473) to keep i...

Opengraph URL: https://github.com/coder/coder/issues/2476

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Change the bulk of our tests to \"true\" unit tests, and kill the fake database","articleBody":"## Problem\r\n\r\nNow that we have embedded postgres, the fake database is not needed for quick local environments, and the main purpose is testing.\r\n\r\nHowever, we have to do some nasty stuff, (#2473) to keep it working, and _because_ it is not postgres, it can lead us into a false sense of security about whether our code actually works.\r\n\r\nBut, we do need a suite of tests that run fast, and our postgres tests are slow.\r\n\r\nCLI tests, by and large, shouldn't be calling the server at all, and instead be mocking out the codersdk.  That will make them simpler (because you don't need a bunch of preamble to get the DB into the state you want), and super fast.  It will also make is easier to test things other than the happy path like errors.\r\n\r\nCoderd tests can and should mock out the database interface for most cases, for the same reasons.\r\n\r\nWe still will want a couple integration tests that go all the way from the CLI -> API -> Database, but there will only be a few and we could use postgres for that.\r\n\r\nOnce we're in that state, we could consider killing the fake database.","author":{"url":"https://github.com/spikecurtis","@type":"Person","name":"spikecurtis"},"datePublished":"2022-06-17T18:17:02Z","url":"https://github.com/coder/coder/issues/2476"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:d45827ed-49a4-b06a-0e44-027938de993e
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idA1AA:26ECEB:28D9892:33EBEBD:6B018C36
html-safe-nonce287abb4a6215375f1863e017b6da53f028cf43ad654773a4d7f04deb18e890dd
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMUFBOjI2RUNFQjoyOEQ5ODkyOjMzRUJFQkQ6NkIwMThDMzYiLCJ2aXNpdG9yX2lkIjoiMjE1NjM5NjE0OTMxNjA5NTAzMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac23dba7a23463c95ac751c487f874a7397889aedc301e13a910a037f424955eef
hovercard-subject-tagissue:1275335970
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/coder/coder/2476/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f71d241d7986050012fb2bc4daedf0477edf388c8814c012c63da355b4a81387/coder/coder/issues/2476
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f71d241d7986050012fb2bc4daedf0477edf388c8814c012c63da355b4a81387/coder/coder/issues/2476
og:image:altProblem Now that we have embedded postgres, the fake database is not needed for quick local environments, and the main purpose is testing. However, we have to do some nasty stuff, (#2473) to keep i...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamespikecurtis
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/coder/coder git https://github.com/coder/coder.git
octolytics-dimension-user_id95932066
octolytics-dimension-user_logincoder
octolytics-dimension-repository_id440752086
octolytics-dimension-repository_nwocoder/coder
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id440752086
octolytics-dimension-repository_network_root_nwocoder/coder
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
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/coder/coder/issues/2476#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F2476
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
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
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://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
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fcoder%2Fcoder%2Fissues%2F2476
Sign uphttps://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=coder%2Fcoder
Reloadhttps://github.com/coder/coder/issues/2476
Reloadhttps://github.com/coder/coder/issues/2476
Reloadhttps://github.com/coder/coder/issues/2476
coderhttps://github.com/coder
coderhttps://github.com/coder/coder
Codehttps://github.com/coder/coder
Issues320 (320)https://github.com/coder/coder/issues
Pull requests470 (470)https://github.com/coder/coder/pulls
Discussionshttps://github.com/coder/coder/discussions
Actionshttps://github.com/coder/coder/actions
Projectshttps://github.com/coder/coder/projects
Security and quality49 (49)https://github.com/coder/coder/security
Insightshttps://github.com/coder/coder/insights
https://github.com/coder/coder
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/2476
New issuehttps://github.com/login?return_to=https://github.com/coder/coder/issues/2476
Change the bulk of our tests to "true" unit tests, and kill the fake databasehttps://github.com/coder/coder/issues/2476#top
https://github.com/spikecurtis
spikecurtishttps://github.com/spikecurtis
on Jun 17, 2022https://github.com/coder/coder/issues/2476#issue-1275335970
#2473https://github.com/coder/coder/pull/2473
https://github.com/misskniss
missknisshttps://github.com/misskniss
on Aug 9, 2022https://github.com/coder/coder/issues/2476#issuecomment-1209507710
@kylecarbshttps://github.com/kylecarbs
@spikecurtishttps://github.com/spikecurtis
https://github.com/kylecarbs
kylecarbshttps://github.com/kylecarbs
on Aug 9, 2022https://github.com/coder/coder/issues/2476#issuecomment-1209577354
kylecarbshttps://github.com/kylecarbs
on Aug 24, 2022https://github.com/coder/coder/issues/2476#event-7252080427
https://github.com/kylecarbs
kylecarbshttps://github.com/kylecarbs
on Oct 21, 2022https://github.com/coder/coder/issues/2476#issuecomment-1287083989
kylecarbshttps://github.com/kylecarbs
not plannedhttps://github.com/coder/coder/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Anot-planned
on Oct 21, 2022https://github.com/coder/coder/issues/2476#event-7641476061
Sign up for freehttps://github.com/signup?return_to=https://github.com/coder/coder/issues/2476
Sign in to commenthttps://github.com/login?return_to=https://github.com/coder/coder/issues/2476
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.