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
Find inside directory `integrationtests` a straightforward postman collection, including test assertions, testing every endpoint and a main application flow:
165
+
Find inside directory `src/integrationtests` a straightforward postman collection, including test assertions, testing every endpoint and a main application flow:
165
166
1. Create a Post
166
167
2. Get all available Posts
167
168
3. Get a specific Post checking structure
168
169
4. Modify the Post's nickname
169
170
5. Get it again to check whether it was modified correctly
170
171
6. Add a Comment to the Post
171
172
7. Delete the Comment
172
-
8. Delete the Post
173
+
8. Delete the Post
174
+
175
+
To run them, you have basically two options:
176
+
- Import the collection in Postman and run them manually
177
+
- Install Newman `npm install -g newman` and execute `npm run test:integration`
178
+
179
+
## Github Actions pipeline
180
+
A very simple actions pipeline is provided in this project too. The file `.github/workflows/ci.yml` will create a pipeline which will trigger the postman collection automatically using newman against the production url for the api:
0 commit comments