cmdcheck

package
v0.0.0-...-8aeb6ef Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: BSD-3-Clause Imports: 29 Imported by: 0

Documentation

Overview

Runs tests on an existing story database.

Index

Constants

This section is empty.

Variables

View Source
var CmdCheck = &base.Command{
	Run:       runCheck,
	Flag:      buildFlags(),
	UsageLine: "tap check [-in path] [name]",
	Short:     "run tests on existing stories",
	Long: `Loads an playable database and runs (one or more) test scripts that it contains.

Runs all unit tests by default, can specify a name to run a specific one.
`,
}

Functions

func CheckFile

func CheckFile(inFile, testName string, opt qna.Options) (ret int, err error)

open db, select tests, de-gob and run them each in turn. print the results, only error on critical errors

Types

type CheckOutput

type CheckOutput struct {
	Name   string
	Domain string
	Expect string // all tests generate text right now; fix: need to handle comparison of literal values
	Test   []rt.Execute
}

func (*CheckOutput) RunTest

func (t *CheckOutput) RunTest(run rt.Runtime) (err error)

takes a play time so that it can run parser commands when requeted

Jump to

Keyboard shortcuts

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