BC break was introduced in gherkin-go master, use gopkg.in for explicit version
Этот коммит содержится в:
родитель
38c79db503
коммит
b669223afd
12 изменённых файлов: 15 добавлений и 15 удалений
|
@ -4,7 +4,8 @@ go:
|
||||||
- 1.2
|
- 1.2
|
||||||
- 1.3
|
- 1.3
|
||||||
- 1.4
|
- 1.4
|
||||||
- release
|
- 1.5
|
||||||
|
- 1.6
|
||||||
- tip
|
- tip
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
@ -13,7 +14,7 @@ script:
|
||||||
- (go version | grep "go1.1") || go get github.com/golang/lint/golint
|
- (go version | grep "go1.1") || go get github.com/golang/lint/golint
|
||||||
|
|
||||||
# pull all external dependencies
|
# pull all external dependencies
|
||||||
- go get github.com/cucumber/gherkin-go
|
- go get gopkg.in/cucumber/gherkin-go.v3
|
||||||
- go get github.com/shiena/ansicolor
|
- go get github.com/shiena/ansicolor
|
||||||
|
|
||||||
# run standard go tests
|
# run standard go tests
|
||||||
|
|
2
Makefile
2
Makefile
|
@ -10,6 +10,6 @@ test:
|
||||||
|
|
||||||
deps:
|
deps:
|
||||||
@echo "updating all dependencies"
|
@echo "updating all dependencies"
|
||||||
go get -u github.com/cucumber/gherkin-go
|
go get -u gopkg.in/cucumber/gherkin-go.v3
|
||||||
go get -u github.com/shiena/ansicolor
|
go get -u github.com/shiena/ansicolor
|
||||||
|
|
||||||
|
|
|
@ -57,7 +57,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/DATA-DOG/godog"
|
"github.com/DATA-DOG/godog"
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type apiFeature struct {
|
type apiFeature struct {
|
||||||
|
@ -99,7 +99,7 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
|
|
||||||
"github.com/DATA-DOG/godog"
|
"github.com/DATA-DOG/godog"
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type apiFeature struct {
|
type apiFeature struct {
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
|
|
||||||
"github.com/DATA-DOG/godog"
|
"github.com/DATA-DOG/godog"
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
type apiFeature struct {
|
type apiFeature struct {
|
||||||
|
|
|
@ -8,9 +8,8 @@ import (
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/DATA-DOG/go-txdb"
|
|
||||||
"github.com/DATA-DOG/godog"
|
"github.com/DATA-DOG/godog"
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
2
fmt.go
2
fmt.go
|
@ -10,7 +10,7 @@ import (
|
||||||
"time"
|
"time"
|
||||||
"unicode"
|
"unicode"
|
||||||
|
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// some snippet formatting regexps
|
// some snippet formatting regexps
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"strings"
|
"strings"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -6,7 +6,7 @@ import (
|
||||||
"sync"
|
"sync"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
package godog
|
package godog
|
||||||
|
|
||||||
import "github.com/cucumber/gherkin-go"
|
import "gopkg.in/cucumber/gherkin-go.v3"
|
||||||
|
|
||||||
type testFormatter struct {
|
type testFormatter struct {
|
||||||
basefmt
|
basefmt
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"runtime"
|
"runtime"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
// StepDef is a registered step definition
|
// StepDef is a registered step definition
|
||||||
|
|
2
suite.go
2
suite.go
|
@ -10,7 +10,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errorInterface = reflect.TypeOf((*error)(nil)).Elem()
|
var errorInterface = reflect.TypeOf((*error)(nil)).Elem()
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/cucumber/gherkin-go"
|
"gopkg.in/cucumber/gherkin-go.v3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func SuiteContext(s *Suite) {
|
func SuiteContext(s *Suite) {
|
||||||
|
|
Загрузка…
Создание таблицы
Сослаться в новой задаче