You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This repository contains skeleton that allow to write End-2-End tests for HTTP(s) API with use of framework [godog](https://github.com/cucumber/godog)
8
-
that implements 🥒[cucumber/gherkin](https://cucumber.io/docs/gherkin/) syntax using step library [gdutils](https://github.com/pawelWritesCode/gdutils).
8
+
that implements 🥒[cucumber/gherkin](https://cucumber.io/docs/gherkin/) syntax using testing library [gdutils](https://github.com/pawelWritesCode/gdutils).
9
9
10
10
## Why ?
11
11
This project **cuts initial time** & allows bootstrap e2e test framework with **plenty of
12
12
utility methods** in just few steps. Just grab it and write tests right away!
13
13
14
14
Benefits:
15
-
*[35+ well-documented, coupled in logical groups steps](https://github.com/pawelWritesCode/godog-example-setup/wiki/Steps) useful for testing HTTP(s) API,
15
+
*[35+ well-documented, coupled in logical groups steps](https://github.com/pawelWritesCode/godog-http-api/wiki/Steps) useful for testing HTTP(s) API,
16
16
* support for using templated values as in [text/template](https://pkg.go.dev/text/template) package,
17
17
* support for querying nodes with different path engines ([oliveagle](https://github.com/oliveagle/jsonpath), [qjson](https://github.com/pawelWritesCode/qjson) - JSON, [go-yaml](https://github.com/goccy/go-yaml) - YAML, [antchfx](https://github.com/antchfx/xmlquery) - XML),
18
18
* support for sending _multipart/form-data_ forms with file in it,
19
19
* developed with debugging in mind,
20
-
* customisable through ability to [replace](https://github.com/pawelWritesCode/godog-example-setup/blob/main/main_test.go#L58) utility services with your own implementations,
* customisable through ability to [replace](https://github.com/pawelWritesCode/godog-http-api/blob/main/main_test.go#L53) utility services with your own implementations,
#### [👆 Click here to see more tests using JSON/YAML/XML](https://github.com/pawelWritesCode/godog-example-setup/blob/main/features/test_server)
25
+
#### [👆 Click here to see more tests using JSON/YAML/XML](https://github.com/pawelWritesCode/godog-http-api/blob/main/features/test_server)
26
26
27
27
```cucumber
28
28
Feature: Adding new user
@@ -90,7 +90,7 @@ Feature: Adding new user
90
90
# or full OS path
91
91
And the response body should be valid according to schema "{{.CWD}}/assets/test_server/doc/schema/user/user.json"
92
92
# or URL pointing at schema
93
-
And the response body should be valid according to schema "https://raw.githubusercontent.com/pawelWritesCode/godog-example-setup/main/assets/test_server/doc/schema/user/user.json"
93
+
And the response body should be valid according to schema "https://raw.githubusercontent.com/pawelWritesCode/godog-http-api/main/assets/test_server/doc/schema/user/user.json"
94
94
# or raw schema definition passed in Docstring
95
95
And the response body should be valid according to schema:
96
96
"""
@@ -127,12 +127,12 @@ Feature: Adding new user
127
127
128
128
## Documentation
129
129
130
-
See project [wiki](https://github.com/pawelWritesCode/godog-example-setup/wiki)
130
+
See project [wiki](https://github.com/pawelWritesCode/godog-http-api/wiki)
131
131
132
-
*[Overview](https://github.com/pawelWritesCode/godog-example-setup/wiki/Overview) - general information about project,
*[Setup](https://github.com/pawelWritesCode/godog-example-setup/wiki/Set-up) - guide how to bootstrap repository on your machine,
135
-
*[Steps](https://github.com/pawelWritesCode/godog-example-setup/wiki/Steps) - describes each available step and how to use it in tests,
136
-
*[Steps debugging](https://github.com/pawelWritesCode/godog-example-setup/wiki/Steps-debugging) - how to debug tests,
137
-
*[Steps development](https://github.com/pawelWritesCode/godog-example-setup/wiki/Steps-development) - how to create custom steps using utility services,
138
-
*[Usage](https://github.com/pawelWritesCode/godog-example-setup/wiki/Usage) - how to run tests.
132
+
*[Overview](https://github.com/pawelWritesCode/godog-http-api/wiki/Overview) - general information about project,
Copy file name to clipboardExpand all lines: features/test_server/json/create.feature
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ Feature: Adding new user
63
63
# or full OS path
64
64
And the response body should be valid according to schema "{{.CWD}}/assets/test_server/doc/schema/user/user.json"
65
65
# or URL pointing at schema
66
-
And the response body should be valid according to schema "https://raw.githubusercontent.com/pawelWritesCode/godog-example-setup/main/assets/test_server/doc/schema/user/user.json"
66
+
And the response body should be valid according to schema "https://raw.githubusercontent.com/pawelWritesCode/godog-http-api/main/assets/test_server/doc/schema/user/user.json"
67
67
# or raw schema definition passed in Docstring
68
68
And the response body should be valid according to schema:
0 commit comments