testrunner

package
v1.0.48038 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package testrunner runs the test command detected by reposcan/env-builder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RenderNoTestsPrompt

func RenderNoTestsPrompt(stack, image string) string

RenderNoTestsPrompt returns the POC prompt shown when env-builder cannot identify a test command for the project. The user is expected to paste this into an AI assistant to bootstrap a test suite.

func RenderPrompt

func RenderPrompt(stack, image, command string, exitCode int, outputTail string) string

RenderPrompt returns the hardcoded POC prompt shown after local tests fail.

func Run

func Run(ctx context.Context, dir string, result *reposcan.Result) error

Run executes the detected test command for dir. The command comes from a precomputed reposcan.Result so callers that already scanned the repo do not need to scan again.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL