{"repo":"cweill/gotests","free":true,"listed":false,"github":"https://github.com/cweill/gotests","clone":"git clone https://github.com/cweill/gotests.git","description":"Automatically generate Go test boilerplate from your source code.","language":"Go","stars":5327,"topics":["golang-tools","testing","code-generator","go","golang","golang-application","testing-tools","test-driven-development","test-generation","table-driven-test"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"gotests gotests is a powerful Go test generator that automatically creates table-driven tests from your source code. It analyzes function and method signatures to generate comprehensive test scaffolding, saving you time and ensuring consistency across your test suite. Key Features - 🚀 Zero-config test generation - Works out of the box with any Go project - 🎯 Smart test scaffolding - Generates complete table-driven test structure with proper type handling - 🔧 Flexible filtering - Generate tests for specific functions, exported functions, or entire packages - 📦 Auto-imports - Automatically adds required imports to test files - 🧬 Full generics support - Works seamlessly with Go 1.18+ type parameters - 🔄 Recursive generation - Process entire directory trees with ./... pattern - 🎨 Custom templates - Built-in support for testify and custom test templates - ⚡ Parallel subtests - Optional parallel test execution support Demo The following shows gotests in action using the official Sublime Text 3 plugin. Plugins also exist for Emacs, also Emacs, Vim, Atom Editor, Visual Studio Code, and IntelliJ Goland. Installation Minimum Go version: Go 1.22 Use go install to install and update: Usage From the commandline, gotests can generate Go tests for specific source files or an entire directory. By default, it prints its output to stdout . Available options: AI-Powered Test Generation gotests can generate intelligent test cases using local LLMs via Ollama. This feature analyzes your fun","default_branch":null,"files":null,"tree":[],"storefront":"/r/cweill","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cweill/gotests/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}