Rename examples to _examples
Rename the examples so that their dependencies don't leak into the main module.
Этот коммит содержится в:
родитель
949f0eabee
коммит
22a08a545d
19 изменённых файлов: 6 добавлений и 18 удалений
2
Makefile
2
Makefile
|
@ -23,7 +23,7 @@ bump:
|
|||
@if [ -z "$(VERSION)" ]; then echo "Provide version like: 'VERSION=$(VERS) make bump'"; exit 1; fi
|
||||
@echo "bumping version from: $(VERS) to $(VERSION)"
|
||||
@sed -i.bak 's/$(VERS)/$(VERSION)/g' godog.go
|
||||
@sed -i.bak 's/$(VERS)/$(VERSION)/g' examples/api/features/version.feature
|
||||
@sed -i.bak 's/$(VERS)/$(VERSION)/g' _examples/api/features/version.feature
|
||||
@find . -name '*.bak' | xargs rm
|
||||
|
||||
cover:
|
||||
|
|
10
README.md
10
README.md
|
@ -69,7 +69,7 @@ themselves from costly regressions.
|
|||
## Example
|
||||
|
||||
The following example can be [found
|
||||
here](/examples/godogs).
|
||||
here](/_examples/godogs).
|
||||
|
||||
### Step 1
|
||||
|
||||
|
@ -213,7 +213,7 @@ composed.
|
|||
image](https://github.com/myie/cucumber-html-reporter) for usage
|
||||
details.
|
||||
- [how to use godog by semaphoreci](https://semaphoreci.com/community/tutorials/how-to-use-godog-for-behavior-driven-development-in-go)
|
||||
- see [examples](https://github.com/cucumber/godog/tree/master/examples)
|
||||
- see [examples](https://github.com/cucumber/godog/tree/master/_examples)
|
||||
- see extension [AssistDog](https://github.com/hellomd/assistdog), which
|
||||
may have useful **gherkin.DataTable** transformations or comparison
|
||||
methods for assertions.
|
||||
|
@ -226,9 +226,9 @@ See `godog -h` for general command options.
|
|||
|
||||
See implementation examples:
|
||||
|
||||
- [rest API server](/examples/api)
|
||||
- [rest API with Database](/examples/db)
|
||||
- [godogs](/examples/godogs)
|
||||
- [rest API server](/_examples/api)
|
||||
- [rest API with Database](/_examples/db)
|
||||
- [godogs](/_examples/godogs)
|
||||
|
||||
## FAQ
|
||||
|
||||
|
|
До Ширина: | Высота: | Размер: 75 КиБ После Ширина: | Высота: | Размер: 75 КиБ |
До Ширина: | Высота: | Размер: 99 КиБ После Ширина: | Высота: | Размер: 99 КиБ |
6
go.mod
6
go.mod
|
@ -1,9 +1,3 @@
|
|||
module github.com/cucumber/godog
|
||||
|
||||
go 1.13
|
||||
|
||||
require (
|
||||
github.com/DATA-DOG/go-txdb v0.1.3
|
||||
github.com/go-sql-driver/mysql v1.5.0
|
||||
github.com/lib/pq v1.3.0 // indirect
|
||||
)
|
||||
|
|
6
go.sum
6
go.sum
|
@ -1,6 +0,0 @@
|
|||
github.com/DATA-DOG/go-txdb v0.1.3 h1:R4v6OuOcy2O147e2zHxU0B4NDtF+INb5R9q/CV7AEMg=
|
||||
github.com/DATA-DOG/go-txdb v0.1.3/go.mod h1:DhAhxMXZpUJVGnT+p9IbzJoRKvlArO2pkHjnGX7o0n0=
|
||||
github.com/go-sql-driver/mysql v1.5.0 h1:ozyZYNQW3x3HtqT1jira07DN2PArx2v7/mN66gGcHOs=
|
||||
github.com/go-sql-driver/mysql v1.5.0/go.mod h1:DCzpHaOWr8IXmIStZouvnhqoel9Qv2LBy8hT2VhHyBg=
|
||||
github.com/lib/pq v1.3.0 h1:/qkRGz8zljWiDcFvgpwUpwIAPu3r07TDvs3Rws+o/pU=
|
||||
github.com/lib/pq v1.3.0/go.mod h1:5WUZQaWbwv1U+lTReE5YruASi9Al49XbQIvNi/34Woo=
|
Загрузка…
Создание таблицы
Сослаться в новой задаче