A mature testing framework for Go designed to help you write expressive specs
Overall
score
97%
A command-line tool that helps Go developers initialize test suites for their packages using a BDD testing framework.
Creates test suite files for Go packages with proper boilerplate code.
mypackage_suite_test.go for package mypackage) @testSupports both internal and external package testing patterns.
--internal flag, generates suite file with package name matching the target package (e.g., mypackage) @test--internal flag, generates suite file with test package name (e.g., mypackage_test) @testProvides clear feedback during suite generation.
@generates
package main
import (
"flag"
"fmt"
"os"
)
// Config holds configuration for suite bootstrapping
type Config struct {
TargetPath string
Internal bool
}
// ParseFlags parses command-line flags and returns a Config
func ParseFlags() (*Config, error) {
// Parse flags: target directory path and --internal flag
// Returns Config or error if arguments are invalid
}
// Bootstrap creates a test suite file in the target directory
func Bootstrap(config *Config) (string, error) {
// Creates suite file with appropriate boilerplate
// Returns the filename created or error if suite already exists or directory invalid
}
func main() {
// Parse flags, call Bootstrap, handle output and errors
}Provides BDD testing framework and suite initialization capabilities.
@satisfied-by
Install with Tessl CLI
npx tessl i tessl/golang-github-com-onsi-ginkgo-v2docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10