{"id":37125656,"url":"https://github.com/danielrenes/bee","last_synced_at":"2026-01-14T14:31:39.156Z","repository":{"id":278389607,"uuid":"935320000","full_name":"danielrenes/bee","owner":"danielrenes","description":"A simple Go test library with colorful output and easily locatable error locations.","archived":false,"fork":false,"pushed_at":"2025-02-19T15:27:41.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-28T09:55:59.014Z","etag":null,"topics":["golang","testing"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danielrenes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-19T08:57:02.000Z","updated_at":"2025-03-02T19:05:54.000Z","dependencies_parsed_at":"2025-02-19T14:45:15.507Z","dependency_job_id":null,"html_url":"https://github.com/danielrenes/bee","commit_stats":null,"previous_names":["danielrenes/bee"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danielrenes/bee","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrenes%2Fbee","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrenes%2Fbee/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrenes%2Fbee/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrenes%2Fbee/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danielrenes","download_url":"https://codeload.github.com/danielrenes/bee/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danielrenes%2Fbee/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28423307,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T13:30:50.153Z","status":"ssl_error","status_checked_at":"2026-01-14T13:29:08.907Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","testing"],"created_at":"2026-01-14T14:31:38.427Z","updated_at":"2026-01-14T14:31:39.143Z","avatar_url":"https://github.com/danielrenes.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bee\n\nA simple Go test library with colorful output and easily locatable error locations.\n\n## Methods\n\n```golang\nfunc Test(t *testing.T) {\n    bee := bee.New(t)\n    bee.Nil(errors.New(\"whoopsie\"))  // whoopsie != \u003cnil\u003e\n    bee.NotNil(nil)                  // \u003cnil\u003e == \u003cnil\u003e\n    bee.True(false)                  // false != true\n    bee.False(true)                  // true != false\n    bee.Equal(1, 2)                  // 1 != 2\n}\n```\n\n## Configure\n\n```golang\nfunc Test(t *testing.T) {\n    bee := bee.New(\n        t,\n        bee.ActualColor(191, 29, 245),    // set \u003cactual\u003e color to rgb(191, 29, 245)\n        bee.ExpectedColor(50, 168, 127),  // set \u003cexpected\u003e color to rgb(50, 168, 127)\n        bee.WhatColor(224, 154, 22),      // set \u003cwhat\u003e color to rgb(224, 154, 22)\n        bee.ColumnWidth(60),              // set column width to 60\n    )\n}\n```\n\n### Disable color\n\n1. set the `bee.NoColor()` option in `bee.New()`\n2. pass the `-nocolor` flag to `go test`\n\n## Output\n\n### Basic types\n\n- Format: `\u003cactual\u003e != \u003cexpected\u003e`\n\n```golang\nfunc Test(t *testing.T) {\n    bee := bee.New(t)\n    bee.Equal(1, 2)\n    // 1 != 2\n}\n```\n\n### Complex types\n\n- Format: `\u003cactual\u003e != \u003cexpected\u003e (\u003cwhat\u003e)`\n\n```golang\ntype Person struct {\n    Name string\n}\n\nfunc Test(t *testing.T) {\n    bee := bee.New(t)\n    actual := []Person{{Name: \"Obi-Wan Kenobi\"}}\n    expected := []Person{{Name: \"Jar Jar Binks\"}}\n    bee.Equal(actual, expected)\n    // Obi-Wan Kenobi != Jar Jar Binks ([0].Name)\n}\n```\n\n### Expand\n\nThe length of `\u003cactual\u003e` and `\u003cexpected\u003e` is limited to the column width.\n\nIf the output would be longer than twice the column width, the values of `\u003cactual\u003e` and `\u003cexpected\u003e` are expanded side-by-side in an additional log message.\n\n```golang\ntype Book struct {\n    Chapters []Chapter\n}\n\ntype Chapter struct {\n    Text string\n}\n\nfunc Test(t *testing.T) {\n    bee := bee.New(t, bee.ColumnWidth(30))\n    actual := Book{\n        Chapters: []Chapter{\n            {\n                Text: \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam vehicula volutpat justo, scelerisque egestas nisl volutpat.\",\n            },\n        },\n    }\n    expected := Book{\n        Chapters: []Chapter{\n            {\n                Text: \"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur scelerisque, sapien eget mattis mattis, eros mi nisi.\",\n            },\n        },\n    }\n    bee.Equal(actual, expected)\n    // Lorem ipsum dolor sit amet,... != Lorem ipsum dolor sit amet,... (.Chapters[0].Text)\n    //  \n    //    Lorem ipsum dolor sit amet,    Lorem ipsum dolor sit amet,  \n    //    consectetur adipiscing elit.   consectetur adipiscing elit. \n    //    Nam vehicula volutpat justo,   Curabitur scelerisque, sapien\n    //    scelerisque egestas nisl       eget mattis mattis, eros mi  \n    //    volutpat.                      nisi.\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrenes%2Fbee","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanielrenes%2Fbee","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanielrenes%2Fbee/lists"}