walk-the-camino
uses the Godog testing framework for writing a resuable BDD-based regression suite. Similar to any Godog application, walk-the-camino
searches for test case specifications in feature/*.feature
files found in the tests/functional
folder, and then pairs them with the corresponding FeatureABC(suite * godog.Suite)
functions. The backbone of the application was recycled using have-some-func as the backend service.
walk-the-camino
├── app
│ ├── handlers_test.go
│ ├── handlers.go
│ ├── start.go
│ └── package.json
│
├── cert
│ └── ...
│
├── data
│ └── employee.go
│
├── database
│ └── processor.go
│
├── tests
│ └── functional
│ ├── reports
│ │ ├── node_modules
│ │ │ ├── ...
│ │ │ └── cucumber-html-reporter
│ │ └── main.js
│ ├── testutil
│ │ └── testutil.go
│ ├── Update-Post-Request
│ │ ├── config
│ │ ├── features
│ │ ├── report
│ │ ├── main.go
│ │ ├── put_request.go
│ │ ├── main_test.go
│ │ └── report_test.go
│ ├── cleanJson.go
│ └── package.json
│
├── utils
│ └── constants.go
│
├── vendor
│ └── github.com
│ ├── buger
│ ├── DATA-DOG
│ └── gorilla
│
├── ...
├── dev-compose.yml
├── Dockerfile
├── LICENSE
├── project.go
└── README.md
Go: go1.11.5 (protip: make sure Go binaries are installed by default)
godog: v0.7.9
Install following libraries:
- go get github.com/cucumber/godog/cmd/[email protected]
- go get -u github.com/gorilla/mux
- go get -u https://github.com/buger/jsonparser
Build application and functional test cases
$ docker-compose -f dev-compose.yml up --exit-code-from functional --build functional
On the terminal:
run PASS ok walk-the-camino/tests/functional/Update-Post-Request 1.000s [no tests to run]
Pull requests are welcomed. Feel free to fork and submit a PR to fix a potential bug, suggest improvements, add new features, etc. Any breaking changes will be published in the CHANGELOG.