testrunner

package
v1.0.44545-pre Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2026 License: MIT Imports: 10 Imported by: 0

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