Модуль переименован для публикации
Некоторые проверки провалились
test / test (1.16.x) (push) Has been cancelled
test / test (1.17.x) (push) Has been cancelled
Некоторые проверки провалились
test / test (1.16.x) (push) Has been cancelled
test / test (1.17.x) (push) Has been cancelled
Этот коммит содержится в:
родитель
3c914c8294
коммит
f6ed69097f
58 изменённых файлов: 119 добавлений и 119 удалений
|
@ -6,7 +6,7 @@ import (
|
|||
"fmt"
|
||||
"net/http"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
func getVersion(w http.ResponseWriter, r *http.Request) {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"net/http/httptest"
|
||||
"reflect"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
type apiFeature struct {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"github.com/cucumber/godog/colors"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"github.com/spf13/pflag"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"io"
|
||||
"math"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"github.com/cucumber/godog/colors"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
flag "github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@ import (
|
|||
"strings"
|
||||
|
||||
txdb "github.com/DATA-DOG/go-txdb"
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"os"
|
||||
"testing"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"github.com/cucumber/godog/colors"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"github.com/spf13/pflag"
|
||||
)
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package main
|
||||
|
||||
import "github.com/cucumber/godog"
|
||||
import "git.golang1.ru/softonik/godog"
|
||||
|
||||
func InitializeScenario(ctx *godog.ScenarioContext) {
|
||||
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
"go/build"
|
||||
"path/filepath"
|
||||
|
||||
"github.com/cucumber/godog/internal/builder"
|
||||
"git.golang1.ru/softonik/godog/internal/builder"
|
||||
"github.com/spf13/cobra"
|
||||
)
|
||||
|
||||
|
|
|
@ -6,8 +6,8 @@ import (
|
|||
"github.com/spf13/cobra"
|
||||
"github.com/spf13/pflag"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/internal/flags"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/internal/flags"
|
||||
)
|
||||
|
||||
var version bool
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/cucumber/godog/internal/builder"
|
||||
"github.com/cucumber/godog/internal/flags"
|
||||
"git.golang1.ru/softonik/godog/internal/builder"
|
||||
"git.golang1.ru/softonik/godog/internal/flags"
|
||||
)
|
||||
|
||||
var opts flags.Options
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
|
||||
"github.com/spf13/cobra"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
// CreateVersionCmd creates the version subcommand.
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"fmt"
|
||||
"os"
|
||||
|
||||
"github.com/cucumber/godog/cmd/godog/internal"
|
||||
"git.golang1.ru/softonik/godog/cmd/godog/internal"
|
||||
)
|
||||
|
||||
func main() {
|
||||
|
|
|
@ -3,7 +3,7 @@ package godog_test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
func ExampleTestSuite_Run_subtests() {
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
// repeats a space n times
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/internal/formatters"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/internal/formatters"
|
||||
)
|
||||
|
||||
func TestFlagsShouldRandomizeAndGenerateSeed(t *testing.T) {
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
"github.com/spf13/pflag"
|
||||
|
||||
"github.com/cucumber/godog/internal/flags"
|
||||
"git.golang1.ru/softonik/godog/internal/flags"
|
||||
)
|
||||
|
||||
// Choose randomly assigns a convenient pseudo-random seed value.
|
||||
|
|
|
@ -3,7 +3,7 @@ package godog
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/cucumber/godog/internal/flags"
|
||||
"git.golang1.ru/softonik/godog/internal/flags"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
10
fmt.go
10
fmt.go
|
@ -6,11 +6,11 @@ import (
|
|||
"strings"
|
||||
"unicode/utf8"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/formatters"
|
||||
internal_fmt "github.com/cucumber/godog/internal/formatters"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/storage"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
internal_fmt "git.golang1.ru/softonik/godog/internal/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/storage"
|
||||
)
|
||||
|
||||
// FindFmt searches available formatters registered
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
func Test_FindFmt(t *testing.T) {
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
func Test_FindFmt(t *testing.T) {
|
||||
|
|
2
go.mod
2
go.mod
|
@ -1,4 +1,4 @@
|
|||
module github.com/cucumber/godog
|
||||
module git.golang1.ru/softonik/godog
|
||||
|
||||
go 1.16
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
var astContextSrc = `package main
|
||||
|
||||
import (
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
func MyContext(s *godog.Suite) {
|
||||
|
@ -18,7 +18,7 @@ func MyContext(s *godog.Suite) {
|
|||
var astTwoContextSrc = `package lib
|
||||
|
||||
import (
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
func ApiContext(s *godog.Suite) {
|
||||
|
|
|
@ -23,13 +23,13 @@ var (
|
|||
compiler = filepath.Join(tooldir, "compile")
|
||||
linker = filepath.Join(tooldir, "link")
|
||||
gopaths = filepath.SplitList(build.Default.GOPATH)
|
||||
godogImportPath = "github.com/cucumber/godog"
|
||||
godogImportPath = "git.golang1.ru/softonik/godog"
|
||||
|
||||
// godep
|
||||
runnerTemplate = template.Must(template.New("testmain").Parse(`package main
|
||||
|
||||
import (
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
{{if or .TestSuiteContexts .ScenarioContexts}}_test "{{.ImportPath}}"{{end}}
|
||||
{{if or .XTestSuiteContexts .XScenarioContexts}}_xtest "{{.ImportPath}}_test"{{end}}
|
||||
{{if or .XTestSuiteContexts .XScenarioContexts}}"testing/internal/testdeps"{{end}}
|
||||
|
@ -70,7 +70,7 @@ func main() {
|
|||
// temp file for import
|
||||
tempFileTemplate = template.Must(template.New("temp").Parse(`package {{.Name}}
|
||||
|
||||
import "github.com/cucumber/godog"
|
||||
import "git.golang1.ru/softonik/godog"
|
||||
|
||||
var _ = godog.Version
|
||||
`))
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
func testOutsideGopathAndHavingOnlyFeature(t *testing.T) {
|
||||
|
@ -21,7 +21,7 @@ func testOutsideGopathAndHavingOnlyFeature(t *testing.T) {
|
|||
builderTC.goModCmds = make([]*exec.Cmd, 2)
|
||||
builderTC.goModCmds[0] = exec.Command("go", "mod", "init", "godogs")
|
||||
|
||||
godogDependency := fmt.Sprintf("github.com/cucumber/godog@%s", godog.Version)
|
||||
godogDependency := fmt.Sprintf("git.golang1.ru/softonik/godog@%s", godog.Version)
|
||||
builderTC.goModCmds[1] = exec.Command("go", "mod", "edit", "-require", godogDependency)
|
||||
|
||||
builderTC.run(t)
|
||||
|
|
|
@ -12,8 +12,8 @@ import (
|
|||
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"github.com/cucumber/godog/internal/builder"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
"git.golang1.ru/softonik/godog/internal/builder"
|
||||
)
|
||||
|
||||
func InitializeScenario(ctx *godog.ScenarioContext) {}
|
||||
|
@ -51,7 +51,7 @@ var builderTestFile = `package godogs
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
func thereAreGodogs(available int) error {
|
||||
|
@ -91,7 +91,7 @@ var builderXTestFile = `package godogs_test
|
|||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
|
||||
"godogs"
|
||||
)
|
||||
|
@ -138,7 +138,7 @@ func main() {
|
|||
|
||||
var emptyBuilderTestFile = `package godogs
|
||||
|
||||
import "github.com/cucumber/godog"
|
||||
import "git.golang1.ru/softonik/godog"
|
||||
|
||||
func InitializeScenario(ctx *godog.ScenarioContext) {}
|
||||
`
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/spf13/pflag"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/cucumber/godog/internal/flags"
|
||||
"git.golang1.ru/softonik/godog/internal/flags"
|
||||
)
|
||||
|
||||
func Test_BindFlagsShouldRespectFlagDefaults(t *testing.T) {
|
||||
|
|
|
@ -11,9 +11,9 @@ import (
|
|||
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -12,11 +12,11 @@ import (
|
|||
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/storage"
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/storage"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
// BaseFormatterFunc implements the FormatterFunc for the base formatter.
|
||||
|
|
|
@ -7,7 +7,7 @@ import (
|
|||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
)
|
||||
|
||||
type csiState int
|
||||
|
|
|
@ -20,8 +20,8 @@ import (
|
|||
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -7,8 +7,8 @@ import (
|
|||
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
const nanoSec = 1000000
|
||||
|
|
|
@ -9,8 +9,8 @@ import (
|
|||
"strconv"
|
||||
"time"
|
||||
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -3,8 +3,8 @@ package formatters
|
|||
import (
|
||||
"io"
|
||||
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"github.com/cucumber/godog/internal/storage"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/storage"
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
)
|
||||
|
||||
|
|
|
@ -13,14 +13,14 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
)
|
||||
|
||||
const fmtOutputTestsFeatureDir = "formatter-tests/features"
|
||||
|
||||
func Test_FmtOutput(t *testing.T) {
|
||||
pkg := os.Getenv("GODOG_TESTED_PACKAGE")
|
||||
os.Setenv("GODOG_TESTED_PACKAGE", "github.com/cucumber/godog")
|
||||
os.Setenv("GODOG_TESTED_PACKAGE", "git.golang1.ru/softonik/godog")
|
||||
|
||||
featureFiles, err := listFmtOutputTestsFeatureFiles()
|
||||
require.Nil(t, err)
|
||||
|
|
|
@ -10,8 +10,8 @@ import (
|
|||
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
)
|
||||
|
||||
func init() {
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
// this zeroes the time throughout whole test suite
|
||||
|
|
|
@ -3,7 +3,7 @@ package models_test
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/cucumber/godog/internal/testutils"
|
||||
"git.golang1.ru/softonik/godog/internal/testutils"
|
||||
"github.com/stretchr/testify/assert"
|
||||
)
|
||||
|
||||
|
|
|
@ -3,8 +3,8 @@ package models
|
|||
import (
|
||||
"time"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
// TestRunStarted ...
|
||||
|
|
|
@ -5,8 +5,8 @@ import (
|
|||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
)
|
||||
|
||||
type stepResultStatusTestCase struct {
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
)
|
||||
|
||||
var typeOfBytes = reflect.TypeOf([]byte(nil))
|
||||
|
|
|
@ -11,9 +11,9 @@ import (
|
|||
"github.com/cucumber/messages-go/v16"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/cucumber/godog"
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
)
|
||||
|
||||
func TestShouldSupportContext(t *testing.T) {
|
||||
|
|
|
@ -13,8 +13,8 @@ import (
|
|||
"github.com/cucumber/gherkin-go/v19"
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/tags"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/tags"
|
||||
)
|
||||
|
||||
var pathLineRe = regexp.MustCompile(`:([\d]+)$`)
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cucumber/godog/internal/parser"
|
||||
"git.golang1.ru/softonik/godog/internal/parser"
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
)
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@ import (
|
|||
"github.com/cucumber/messages-go/v16"
|
||||
"github.com/hashicorp/go-memdb"
|
||||
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -7,9 +7,9 @@ import (
|
|||
"github.com/cucumber/messages-go/v16"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/storage"
|
||||
"github.com/cucumber/godog/internal/testutils"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/storage"
|
||||
"git.golang1.ru/softonik/godog/internal/testutils"
|
||||
)
|
||||
|
||||
func Test_MustGetPickle(t *testing.T) {
|
||||
|
|
|
@ -5,7 +5,7 @@ import (
|
|||
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/cucumber/godog/internal/tags"
|
||||
"git.golang1.ru/softonik/godog/internal/tags"
|
||||
)
|
||||
|
||||
type testcaseF struct {
|
||||
|
|
|
@ -6,7 +6,7 @@ import (
|
|||
"github.com/cucumber/messages-go/v16"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/cucumber/godog/internal/tags"
|
||||
"git.golang1.ru/softonik/godog/internal/tags"
|
||||
)
|
||||
|
||||
type tag = messages.PickleTag
|
||||
|
|
|
@ -8,7 +8,7 @@ import (
|
|||
"github.com/cucumber/messages-go/v16"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
)
|
||||
|
||||
// BuildTestFeature creates a feature for testing purpose.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
package godog
|
||||
|
||||
import "github.com/cucumber/godog/internal/flags"
|
||||
import "git.golang1.ru/softonik/godog/internal/flags"
|
||||
|
||||
// Options are suite run options
|
||||
// flags are mapped to these options.
|
||||
|
|
14
run.go
14
run.go
|
@ -16,13 +16,13 @@ import (
|
|||
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/formatters"
|
||||
ifmt "github.com/cucumber/godog/internal/formatters"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/parser"
|
||||
"github.com/cucumber/godog/internal/storage"
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
ifmt "git.golang1.ru/softonik/godog/internal/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/parser"
|
||||
"git.golang1.ru/softonik/godog/internal/storage"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
const (
|
||||
|
|
|
@ -10,10 +10,10 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/internal/formatters"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/storage"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/internal/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/storage"
|
||||
)
|
||||
|
||||
var basicGherkinFeature = `
|
||||
|
|
|
@ -18,10 +18,10 @@ import (
|
|||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/internal/formatters"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/storage"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/internal/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/storage"
|
||||
)
|
||||
|
||||
func okStep() error {
|
||||
|
|
8
suite.go
8
suite.go
|
@ -9,10 +9,10 @@ import (
|
|||
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/storage"
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/storage"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
var (
|
||||
|
|
|
@ -16,12 +16,12 @@ import (
|
|||
"github.com/cucumber/messages-go/v16"
|
||||
"github.com/stretchr/testify/assert"
|
||||
|
||||
"github.com/cucumber/godog/colors"
|
||||
"github.com/cucumber/godog/internal/formatters"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"github.com/cucumber/godog/internal/parser"
|
||||
"github.com/cucumber/godog/internal/storage"
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/colors"
|
||||
"git.golang1.ru/softonik/godog/internal/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/internal/parser"
|
||||
"git.golang1.ru/softonik/godog/internal/storage"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
// InitializeScenario provides steps for godog suite execution and
|
||||
|
@ -686,7 +686,7 @@ func (tc *godogFeaturesScenario) theRenderOutputWillBe(docstring *DocString) err
|
|||
actualSuiteCtxReg := regexp.MustCompile(`suite_context_test.go:\d+`)
|
||||
|
||||
expectedSuiteCtxFuncReg := regexp.MustCompile(`SuiteContext.func(\d+)`)
|
||||
actualSuiteCtxFuncReg := regexp.MustCompile(`github.com/cucumber/godog.InitializeScenario.func(\d+)`)
|
||||
actualSuiteCtxFuncReg := regexp.MustCompile(`git.golang1.ru/softonik/godog.InitializeScenario.func(\d+)`)
|
||||
|
||||
suiteCtxPtrReg := regexp.MustCompile(`\*suiteContext`)
|
||||
|
||||
|
|
|
@ -6,9 +6,9 @@ import (
|
|||
"reflect"
|
||||
"regexp"
|
||||
|
||||
"github.com/cucumber/godog/formatters"
|
||||
"github.com/cucumber/godog/internal/builder"
|
||||
"github.com/cucumber/godog/internal/models"
|
||||
"git.golang1.ru/softonik/godog/formatters"
|
||||
"git.golang1.ru/softonik/godog/internal/builder"
|
||||
"git.golang1.ru/softonik/godog/internal/models"
|
||||
"github.com/cucumber/messages-go/v16"
|
||||
)
|
||||
|
||||
|
|
|
@ -4,7 +4,7 @@ import (
|
|||
"testing"
|
||||
"time"
|
||||
|
||||
"github.com/cucumber/godog/internal/utils"
|
||||
"git.golang1.ru/softonik/godog/internal/utils"
|
||||
)
|
||||
|
||||
// this zeroes the time throughout whole test suite
|
||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче