connectors

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connector

type Connector interface {
	DetectFramework() (bool, error)
	GenerateConfig(path string) config.ConnectorConfig
	DiscoverTests(path string) ([]string, error)
}

type ElixirConnector

type ElixirConnector struct {
	Executable string
}

func DefaultElixirConnector

func DefaultElixirConnector() *ElixirConnector

DefaultElixirConnector returns an ElixirConnector with default configuration

func NewElixirConnector

func NewElixirConnector(executable string) *ElixirConnector

NewElixirConnector creates a new ElixirConnector with the specified executable

func (*ElixirConnector) DetectFramework

func (e *ElixirConnector) DetectFramework() (bool, error)

DetectFramework checks if the mix executable is available

func (*ElixirConnector) DiscoverTests

func (e *ElixirConnector) DiscoverTests(path string) ([]string, error)

DiscoverTests discovers Elixir tests in the given path with a default timeout

func (*ElixirConnector) DiscoverTestsWithContext

func (e *ElixirConnector) DiscoverTestsWithContext(ctx context.Context, path string) ([]string, error)

DiscoverTestsWithContext discovers Elixir tests in the given path with a context

func (*ElixirConnector) GenerateConfig

func (e *ElixirConnector) GenerateConfig(path string) config.ConnectorConfig

GenerateConfig creates a default connector configuration for Elixir

type GleamConnector added in v0.2.0

type GleamConnector struct {
	Executable string
}

func DefaultGleamConnector added in v0.2.0

func DefaultGleamConnector() *GleamConnector

DefaultGleamConnector returns a GleamConnector with default configuration

func NewGleamConnector added in v0.2.0

func NewGleamConnector(executable string) *GleamConnector

func (*GleamConnector) DetectFramework added in v0.2.0

func (g *GleamConnector) DetectFramework() (bool, error)

DetectFramework checks if the Gleam executable is available

func (*GleamConnector) DiscoverTests added in v0.2.0

func (g *GleamConnector) DiscoverTests(path string) ([]string, error)

DiscoverTests discovers Gleam tests by parsing source files in the test/ directory

func (*GleamConnector) GenerateConfig added in v0.2.0

func (g *GleamConnector) GenerateConfig(path string) config.ConnectorConfig

GenerateConfig creates a default connector configuration for Gleam

type GoConnector

type GoConnector struct {
	Executable string
}

func DefaultGoConnector

func DefaultGoConnector() *GoConnector

DefaultGoConnector returns a GoConnector with default configuration

func NewGoConnector

func NewGoConnector(executable string) *GoConnector

func (*GoConnector) DetectFramework

func (g *GoConnector) DetectFramework() (bool, error)

DetectFramework checks if the Go executable is available

func (*GoConnector) DiscoverTests

func (g *GoConnector) DiscoverTests(path string) ([]string, error)

DiscoverTests discovers Go tests in the given path with a default timeout

func (*GoConnector) DiscoverTestsWithContext

func (g *GoConnector) DiscoverTestsWithContext(ctx context.Context, path string) ([]string, error)

DiscoverTestsWithContext discovers Go tests in the given path with a context

func (*GoConnector) GenerateConfig

func (g *GoConnector) GenerateConfig(path string) config.ConnectorConfig

GenerateConfig creates a default connector configuration for Go

func (*GoConnector) ValidateCompatibility

func (g *GoConnector) ValidateCompatibility() (bool, error)

ValidateCompatibility checks if the Go version is 1.13 or higher

func (*GoConnector) ValidateConfiguration

func (g *GoConnector) ValidateConfiguration() error

ValidateConfiguration validates the connector configuration

type PytestConnector

type PytestConnector struct {
	Executable string
}

func DefaultPytestConnector

func DefaultPytestConnector() *PytestConnector

DefaultPytestConnector returns a PytestConnector with default configuration

func NewPytestConnector

func NewPytestConnector(executable string) *PytestConnector

NewPytestConnector creates a new PytestConnector with the specified executable

func (*PytestConnector) DetectFramework

func (p *PytestConnector) DetectFramework() (bool, error)

DetectFramework checks if the pytest executable is available

func (*PytestConnector) DiscoverTests

func (p *PytestConnector) DiscoverTests(path string) ([]string, error)

DiscoverTests discovers pytest tests in the given path with a default timeout

func (*PytestConnector) DiscoverTestsWithContext

func (p *PytestConnector) DiscoverTestsWithContext(ctx context.Context, path string) ([]string, error)

DiscoverTestsWithContext discovers pytest tests in the given path with a context

func (*PytestConnector) GenerateConfig

func (p *PytestConnector) GenerateConfig(path string) config.ConnectorConfig

GenerateConfig creates a default connector configuration for Pytest

type VitestConnector added in v0.3.0

type VitestConnector struct {
	Executable string
}

func DefaultVitestConnector added in v0.3.0

func DefaultVitestConnector() *VitestConnector

DefaultVitestConnector returns a VitestConnector with default configuration

func NewVitestConnector added in v0.3.0

func NewVitestConnector(executable string) *VitestConnector

NewVitestConnector creates a new VitestConnector with the specified executable

func (*VitestConnector) DetectFramework added in v0.3.0

func (v *VitestConnector) DetectFramework() (bool, error)

DetectFramework checks if the vitest executable is available

func (*VitestConnector) DiscoverTests added in v0.3.0

func (v *VitestConnector) DiscoverTests(path string) ([]string, error)

DiscoverTests discovers vitest tests in the given path with a default timeout

func (*VitestConnector) DiscoverTestsWithContext added in v0.3.0

func (v *VitestConnector) DiscoverTestsWithContext(ctx context.Context, path string) ([]string, error)

DiscoverTestsWithContext discovers vitest tests in the given path with a context

func (*VitestConnector) GenerateConfig added in v0.3.0

func (v *VitestConnector) GenerateConfig(path string) config.ConnectorConfig

GenerateConfig creates a default connector configuration for Vitest

type VitestTestItem added in v0.3.0

type VitestTestItem struct {
	Name string `json:"name"`
	File string `json:"file"`
}

VitestTestItem represents a single test from vitest list --json output

Jump to

Keyboard shortcuts

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