crash

package module
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2016 License: MIT Imports: 4 Imported by: 0

README

Crash

Version License Build Status

A command-line tool for executing test plans and reporting results. Test plans, Crashfiles, defined in YAML, direct the execution of actions, such as HTTP requests, checks, such as asserting an HTTP response code of 200, repetitions, and concurrency.

Crash is currently in alpha development, and pretty much everything is subject to change. It is not yet suitable for production use until 1.0 is released.

Documentation

User documentation can be found at https://troykinsella.github.io/crash/

Roadmap

  • Way more fucking documentation. WAY more.
  • HTTPS action support
  • Shell action support
  • Configurable input sources and output targets
  • Shell script execution

License

MIT © Troy Kinsella

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionConfig

type ActionConfig struct {
	Name   string            `yaml:"name"`
	Type   string            `yaml:"type"`
	Params map[string]string `yaml:"params"`
}

type Config

type Config struct {
	Variables map[string]string `yaml:"vars,omitempty"`
	Inputs    *IOConfigs        `yaml:"inputs,omitempty"`
	Outputs   *IOConfigs        `yaml:"outputs,omitempty"`
	Checks    map[string]string `yaml:"checks,omitempty"`
	Plans     *PlanConfigs      `yaml:"plans"`
}

func NewConfig

func NewConfig() *Config

func (*Config) Dump

func (config *Config) Dump()

func (*Config) MarshalYAML

func (config *Config) MarshalYAML() ([]byte, error)

func (*Config) UnmarshalYAML

func (config *Config) UnmarshalYAML(bytes []byte) error

func (*Config) UnmarshalYAMLFile

func (config *Config) UnmarshalYAMLFile(file string) error

type IOConfig

type IOConfig struct {
	Name   string
	Type   string
	Params map[string]interface{}
}

type IOConfigs

type IOConfigs []IOConfig

type PlanConfig

type PlanConfig struct {
	Name  string       `yaml:"plan"`
	Steps *StepConfigs `yaml:"steps"`
}

type PlanConfigs

type PlanConfigs []PlanConfig

type StepConfig

type StepConfig struct {
	Run      *ActionConfig `yaml:"run,omitempty"`
	Serial   *StepConfigs  `yaml:"serial,omitempty"`
	Parallel *StepConfigs  `yaml:"parallel,omitempty"`
	With     *WithConfig   `yaml:"with,omitempty"`

	Success *StepConfigs `yaml:"success,omitempty"`
	Failure *StepConfigs `yaml:"failure,omitempty"`
	Always  *StepConfigs `yaml:"always,omitempty"`

	Checks  []string `yaml:"check,omitempty"`
	Timeout string   `yaml:"timeout,omitempty"`
}

type StepConfigs

type StepConfigs []StepConfig

type TestOptions

type TestOptions struct {
	Crashfile      string
	LogLevel       logging.Level
	Colorize       bool
	LogJson        bool
	Variables      map[string]string
	VariablesFiles []string
}

type WithConfig added in v0.0.6

type WithConfig struct {
	Item  string            `yaml:"item,omitempty"`
	List  []string          `yaml:"list,omitempty"`
	Map   map[string]string `yaml:"map,omitempty"`
	Range *WithRangeConfig  `yaml:"range,omitempty"`

	As string `yaml:"as,omitempty"`
}

type WithRangeConfig added in v0.0.6

type WithRangeConfig struct {
	From string `yaml:"from"`
	To   string `yaml:"to"`
	Step string `yaml:"step,omitempty"`
}

Directories

Path Synopsis
ast
op

Jump to

Keyboard shortcuts

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