github.com/lonnblad/godog@v0.7.14-0.20200306004719-1b0cb3259847/options.go (about)

     1  package godog
     2  
     3  import (
     4  	"io"
     5  )
     6  
     7  // Options are suite run options
     8  // flags are mapped to these options.
     9  //
    10  // It can also be used together with godog.RunWithOptions
    11  // to run test suite from go source directly
    12  //
    13  // See the flags for more details
    14  type Options struct {
    15  	// Print step definitions found and exit
    16  	ShowStepDefinitions bool
    17  
    18  	// Randomize, if not `0`, will be used to run scenarios in a random order.
    19  	//
    20  	// Randomizing scenario order is especially helpful for detecting
    21  	// situations where you have state leaking between scenarios, which can
    22  	// cause flickering or fragile tests.
    23  	//
    24  	// The default value of `0` means "do not randomize".
    25  	//
    26  	// The magic value of `-1` means "pick a random seed for me", and godog will
    27  	// assign a seed on it's own during the `RunWithOptions` phase, similar to if
    28  	// you specified `--random` on the command line.
    29  	//
    30  	// Any other value will be used as the random seed for shuffling. Re-using the
    31  	// same seed will allow you to reproduce the shuffle order of a previous run
    32  	// to isolate an error condition.
    33  	Randomize int64
    34  
    35  	// Stops on the first failure
    36  	StopOnFailure bool
    37  
    38  	// Fail suite when there are pending or undefined steps
    39  	Strict bool
    40  
    41  	// Forces ansi color stripping
    42  	NoColors bool
    43  
    44  	// Various filters for scenarios parsed
    45  	// from feature files
    46  	Tags string
    47  
    48  	// The formatter name
    49  	Format string
    50  
    51  	// Concurrency rate, not all formatters accepts this
    52  	Concurrency int
    53  
    54  	// All feature file paths
    55  	Paths []string
    56  
    57  	// Where it should print formatter output
    58  	Output io.Writer
    59  }