{"id":13413911,"url":"https://github.com/vcaesar/tt","last_synced_at":"2025-07-13T11:33:15.044Z","repository":{"id":32523229,"uuid":"127899657","full_name":"vcaesar/tt","owner":"vcaesar","description":"Simple and colorful test tools","archived":false,"fork":false,"pushed_at":"2025-05-18T17:55:43.000Z","size":72,"stargazers_count":9,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-18T18:44:18.869Z","etag":null,"topics":["assert","go","golang","test","testing"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vcaesar.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","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,"zenodo":null}},"created_at":"2018-04-03T11:47:21.000Z","updated_at":"2025-05-18T17:55:47.000Z","dependencies_parsed_at":"2024-06-03T00:56:21.640Z","dependency_job_id":"782f9ec0-2f46-46a5-a0f9-b7b28b677911","html_url":"https://github.com/vcaesar/tt","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/vcaesar/tt","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Ftt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Ftt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Ftt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Ftt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vcaesar","download_url":"https://codeload.github.com/vcaesar/tt/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcaesar%2Ftt/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265132270,"owners_count":23716137,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["assert","go","golang","test","testing"],"created_at":"2024-07-30T20:01:52.574Z","updated_at":"2025-07-13T11:33:14.997Z","avatar_url":"https://github.com/vcaesar.png","language":"Go","readme":"# tt\nSimple and colorful test tools\n\n[![CircleCI Status](https://circleci.com/gh/vcaesar/tt.svg?style=shield)](https://circleci.com/gh/vcaesar/tt)\n![Appveyor](https://ci.appveyor.com/api/projects/status/github/vcaesar/tt?branch=master\u0026svg=true)\n[![codecov](https://codecov.io/gh/vcaesar/tt/branch/master/graph/badge.svg)](https://codecov.io/gh/vcaesar/tt)\n[![Build Status](https://travis-ci.org/vcaesar/tt.svg)](https://travis-ci.org/vcaesar/tt)\n[![Go Report Card](https://goreportcard.com/badge/github.com/vcaesar/tt)](https://goreportcard.com/report/github.com/vcaesar/tt)\n[![GoDoc](https://godoc.org/github.com/vcaesar/tt?status.svg)](https://godoc.org/github.com/vcaesar/tt)\n[![Release](https://github-release-version.herokuapp.com/github/vcaesar/tt/release.svg?style=flat)](https://github.com/vcaesar/tt/releases/latest)\n[![Join the chat at https://gitter.im/go-ego/ego](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/go-ego/ego?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n## Installation/Update\n\n```\ngo get -u github.com/vcaesar/tt\n```\n\n## Usage:\n\n#### [Look at an example](/example/)\n\n```go\npackage tt\n\nimport (\n\t\"fmt\"\n\t\"testing\"\n\n\t\"github.com/vcaesar/tt\"\n\t\"github.com/vcaesar/tt/example\"\n)\n\nfunc TestAdd(t *testing.T) {\n\tfmt.Println(add.Add(1, 1))\n\n\ttt.Expect(t, \"1\", add.Add(1, 1))\n\ttt.Expect(t, \"2\", add.Add(1, 1))\n\n\ttt.Equal(t, 1, add.Add(1, 1))\n\ttt.Equal(t, 2, add.Add(1, 1))\n\n\tat := tt.New(t)\n\tat.Expect(\"2\", add.Add(1, 1))\n\tat.Equal(2, add.Add(1, 1))\n}\n\nfunc Benchmark1(b *testing.B) {\n\tat := tt.New(b)\n\tfn := func() {\n\t\tat.Equal(2, add.Add(1, 1))\n\t}\n\n\ttt.BM(b, fn)\n\t// at.BM(b, fn)\n}\n\nfunc Benchmark2(b *testing.B) {\n\tat := tt.New(b)\n\tfor i := 0; i \u003c b.N; i++ {\n\t\tat.Equal(2, Add(1, 1))\n\t}\n}\n\n```\n## Thanks\n\n[Testify](https://github.com/stretchr/testify), the code has some inspiration.","funding_links":[],"categories":["Template Engines","测试相关","Testing","测试","Testing Frameworks","测试相关`测试库和测试数据集生成库`"],"sub_categories":["Testing Frameworks","查询语","HTTP Clients","Advanced Console UIs","HTTP客户端","交流"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcaesar%2Ftt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvcaesar%2Ftt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcaesar%2Ftt/lists"}