Merge branch 'master' into gherkin-go-v9
Этот коммит содержится в:
коммит
7094b891a5
5 изменённых файлов: 17 добавлений и 5 удалений
|
@ -38,7 +38,7 @@ commands:
|
||||||
description: "Run godog"
|
description: "Run godog"
|
||||||
steps:
|
steps:
|
||||||
- run: go install ./cmd/godog
|
- run: go install ./cmd/godog
|
||||||
- run: godog -f progress
|
- run: godog -f progress --strict
|
||||||
go_test:
|
go_test:
|
||||||
description: "Run go test"
|
description: "Run go test"
|
||||||
steps:
|
steps:
|
||||||
|
|
|
@ -14,13 +14,18 @@ This document is formatted according to the principles of [Keep A CHANGELOG](htt
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
|
|
||||||
|
- Run godog features in CircleCI in strict mode ([jaysonesmith])
|
||||||
|
- Removed TestMain call in `suite_test.go` for CI. ([jaysonesmith])
|
||||||
|
|
||||||
### Deprecated
|
### Deprecated
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
|
|
||||||
### Fixed
|
### Fixed
|
||||||
|
|
||||||
- Fixed the time attributes in the JUnit formatter. ([232](https://github.com/cucumber/godog/pull/232) [lonnblad])
|
- Fixed the time attributes in the JUnit formatter. ([232](https://github.com/cucumber/godog/pull/232) [lonnblad])
|
||||||
- Re enable custom formatters. ([238](https://github.com/cucumber/godog/pull/238) [ericmcbride])
|
- Re enable custom formatters. ([238](https://github.com/cucumber/godog/pull/238) [ericmcbride])
|
||||||
|
- Added back suite_test.go ([jaysonesmith])
|
||||||
|
|
||||||
## [0.8.1]
|
## [0.8.1]
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
# Godog
|
# Godog
|
||||||
|
|
||||||
[🚨🚨🚨 Godog is looking for new maintainers 🚨🚨🚨](https://github.com/cucumber/godog/issues/207)
|
|
||||||
|
|
||||||
<p align="center"><img src="/logo.png" alt="Godog logo" style="width:250px;" /></p>
|
<p align="center"><img src="/logo.png" alt="Godog logo" style="width:250px;" /></p>
|
||||||
|
|
||||||
**The API is likely to change a few times before we reach 1.0.0**
|
**The API is likely to change a few times before we reach 1.0.0**
|
||||||
|
|
|
@ -238,6 +238,9 @@ func maybeVendoredGodog() *build.Package {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func normaliseLocalImportPath(dir string) string {
|
||||||
|
return path.Join("_", strings.Map(makeImportValid, filepath.ToSlash(dir)))
|
||||||
|
}
|
||||||
func importPackage(dir string) *build.Package {
|
func importPackage(dir string) *build.Package {
|
||||||
pkg, _ := build.ImportDir(dir, 0)
|
pkg, _ := build.ImportDir(dir, 0)
|
||||||
|
|
||||||
|
@ -245,7 +248,7 @@ func importPackage(dir string) *build.Package {
|
||||||
// taken from go source code
|
// taken from go source code
|
||||||
// see: https://github.com/golang/go/blob/go1.7rc5/src/cmd/go/pkg.go#L279
|
// see: https://github.com/golang/go/blob/go1.7rc5/src/cmd/go/pkg.go#L279
|
||||||
if pkg != nil && pkg.ImportPath == "." {
|
if pkg != nil && pkg.ImportPath == "." {
|
||||||
pkg.ImportPath = path.Join("_", strings.Map(makeImportValid, filepath.ToSlash(dir)))
|
pkg.ImportPath = normaliseLocalImportPath(dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
return pkg
|
return pkg
|
||||||
|
@ -376,7 +379,7 @@ func parseImport(rawPath, rootPath string) string {
|
||||||
return rawPath
|
return rawPath
|
||||||
}
|
}
|
||||||
// Concatenates the module path with the current sub-folders if needed
|
// Concatenates the module path with the current sub-folders if needed
|
||||||
return mod.Path + filepath.ToSlash(strings.TrimPrefix(strings.TrimPrefix(rawPath, "_"), mod.Dir))
|
return mod.Path + filepath.ToSlash(strings.TrimPrefix(rawPath, normaliseLocalImportPath(mod.Dir)))
|
||||||
}
|
}
|
||||||
|
|
||||||
// processPackageTestFiles runs through ast of each test
|
// processPackageTestFiles runs through ast of each test
|
||||||
|
|
6
suite_test.go
Обычный файл
6
suite_test.go
Обычный файл
|
@ -0,0 +1,6 @@
|
||||||
|
package godog
|
||||||
|
|
||||||
|
// needed in order to use godog cli
|
||||||
|
func GodogContext(s *Suite) {
|
||||||
|
SuiteContext(s)
|
||||||
|
}
|
Загрузка…
Создание таблицы
Сослаться в новой задаче