{"id":21721511,"url":"https://github.com/rdeusser/gotests","last_synced_at":"2025-10-25T07:42:25.949Z","repository":{"id":57552206,"uuid":"169136690","full_name":"rdeusser/gotests","owner":"rdeusser","description":"Generate Go tests from your source code","archived":false,"fork":false,"pushed_at":"2019-02-04T21:09:47.000Z","size":12787,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-20T21:50:04.335Z","etag":null,"topics":["go","golang","test-generation","testing-tools"],"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/rdeusser.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}},"created_at":"2019-02-04T19:37:02.000Z","updated_at":"2019-02-04T21:09:48.000Z","dependencies_parsed_at":"2022-09-26T18:50:36.463Z","dependency_job_id":null,"html_url":"https://github.com/rdeusser/gotests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rdeusser/gotests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdeusser%2Fgotests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdeusser%2Fgotests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdeusser%2Fgotests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdeusser%2Fgotests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rdeusser","download_url":"https://codeload.github.com/rdeusser/gotests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rdeusser%2Fgotests/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266430671,"owners_count":23927167,"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","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"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":["go","golang","test-generation","testing-tools"],"created_at":"2024-11-26T02:17:13.553Z","updated_at":"2025-10-25T07:42:25.868Z","avatar_url":"https://github.com/rdeusser.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gotests [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/rdeusser/gotests/blob/master/LICENSE) [![godoc](https://img.shields.io/badge/go-documentation-blue.svg)](https://godoc.org/github.com/rdeusser/gotests) [![Build Status](https://travis-ci.org/rdeusser/gotests.svg?branch=master)](https://travis-ci.org/rdeusser/gotests) [![Go Report Card](https://goreportcard.com/badge/github.com/rdeusser/gotests)](https://goreportcard.com/report/github.com/rdeusser/gotests)\n\n**This is a fork of [cweill's version](https://github.com/cweill/gotests) of gotests to fix some issues and add my own flavor.**\n\n`gotests` makes writing Go tests easy. It's a Go commandline tool that generates [table driven tests](https://github.com/golang/go/wiki/TableDrivenTests) based on its target source files' function and method signatures. Any new dependencies in the test files are automatically imported.\n\n## Installation\n\n__Minimum Go version:__ Go 1.11\n\nUse [`go get`](https://golang.org/cmd/go/#hdr-Download_and_install_packages_and_dependencies) to install and update:\n\n```sh\n$ go get -u github.com/rdeusser/gotests/...\n```\n\n## Usage\n\nFrom the commandline, `gotests` can generate Go tests for specific source files or an entire directory. By default, it prints its output to `stdout`.\n\n```sh\n$ gotests [options] PATH ...\n```\n\nAvailable options:\n\n```\n  -all           generate go tests for all functions and methods\n\n  -excl          regexp. generate go tests for functions and methods that don't\n                 match. Takes precedence over -only, -exported, and -all\n\n  -exported      generate go tests for exported functions and methods. Takes\n                 precedence over -only and -all\n\n  -i             print test inputs in error messages\n\n  -only          regexp. generate go tests for functions and methods that match only.\n                 Takes precedence over -all\n\n  -w             write output to (test) files instead of stdout\n\n  -nosubtests    disable subtest generation. Only available for Go 1.7+\n\n  -template_dir  optional. Path to a directory containing custom test code templates\n```\n\n## License\n\n`gotests` is released under the [Apache 2.0 License](http://www.apache.org/licenses/LICENSE-2.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdeusser%2Fgotests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frdeusser%2Fgotests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frdeusser%2Fgotests/lists"}