Documentation
¶
Overview ¶
Package acceptance implements repository-internal acceptance-test orchestration.
Index ¶
- Constants
- func CollectCoverage(ctx context.Context, options *CoverageOptions, packages, testArgs []string) error
- func FindRepoRoot(start string) (string, error)
- func MergeCoverage(ctx context.Context, repoRoot, dataOut, textOut string, inputs []string) error
- func MergeCoverageShards(ctx context.Context, options CoverageShardOptions) error
- func Precompile(ctx context.Context, repoRoot string, target Target, outputDir string) error
- func RunShard(ctx context.Context, options *RunOptions) error
- func SplitCommandLine(value string) ([]string, error)
- func Verify(ctx context.Context, repoRoot string, target Target, shardCount int, ...) error
- type CoverageOptions
- type CoverageShardOptions
- type Mode
- type RunOptions
- type Shard
- type Target
Constants ¶
View Source
const ( TestsPackage = "github.com/cloudposse/atmos/tests" CmdPackage = "github.com/cloudposse/atmos/cmd" ExecPackage = "github.com/cloudposse/atmos/internal/exec" TestHelpersPackage = "github.com/cloudposse/atmos/tests/testhelpers" CLICommandsTest = "TestCLICommands" RegistryTest = "TestTerraformRegistryCache" )
Variables ¶
This section is empty.
Functions ¶
func CollectCoverage ¶
func CollectCoverage(ctx context.Context, options *CoverageOptions, packages, testArgs []string) error
func FindRepoRoot ¶
func MergeCoverage ¶
func MergeCoverageShards ¶
func MergeCoverageShards(ctx context.Context, options CoverageShardOptions) error
func Precompile ¶
func SplitCommandLine ¶
Types ¶
type CoverageOptions ¶
type CoverageOptions struct {
RepoRoot string
Dir string
DataOut string
TextOut string
Timeout string
}
CoverageOptions configures native Go coverage collection.
type CoverageShardOptions ¶
type CoverageShardOptions struct {
RepoRoot string
Count int
ShardsDir string
DataOut string
TextOut string
}
CoverageShardOptions configures merging downloaded native coverage artifacts.
type RunOptions ¶
type RunOptions struct {
RepoRoot string
Mode Mode
Target Target
Shard Shard
BuildDir string
CoverageRoot string
GoTestTimeout string
CmdTestBinary string
TestsBinary string
ExecTestBinary string
}
func DefaultRunOptions ¶
func DefaultRunOptions(repoRoot string, mode Mode, target Target, shard Shard) RunOptions
type Shard ¶
func ParseShard ¶
Click to show internal directories.
Click to hide internal directories.