tester

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2018 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Overview

package tester implements support for testing Serulian code.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecorateRunners

func DecorateRunners(command *cobra.Command, vcsDevelopmentDirectories *[]string)

DecorateRunners decorates the test command with a command for each runner.

func RegisterRunner

func RegisterRunner(name string, runner TestRunner)

RegisterRunner registers a test runner with the specific name.

Types

type TestRunner

type TestRunner interface {
	// Title is a human-readable title for the test runner.
	Title() string

	// DecorateCommand decorates the cobra command for the runner with the runner-specific
	// options.
	DecorateCommand(command *cobra.Command)

	// SetupIfNecessary is run before any test runs occur to run the setup process
	// for the runner (if necessary). This method should no-op if all necessary
	// dependencies are in place.
	SetupIfNecessary(testingEnvDirectoryPath string) error

	// Run runs the test runner over the generated ES path.
	Run(testingEnvDirectoryPath string, generatedFilePath string) (bool, error)
}

TestRunner defines an interface for the test runner.

Directories

Path Synopsis
package karma implements support for testing Serulian code via the karma testing framework.
package karma implements support for testing Serulian code via the karma testing framework.

Jump to

Keyboard shortcuts

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