kffl / nextcloud-webhooks

Webhooks app for Nextcloud :globe_with_meridians: :zap:
https://apps.nextcloud.com/apps/webhooks
GNU Affero General Public License v3.0
44 stars 9 forks source link

End-to-end testing #7

Open kffl opened 2 years ago

kffl commented 2 years ago

Given rather unusual nature of this app (core functionality revolving around notifying an external system via HTTP POST requests), it seems that the most reasonable way to automate testing would rely on e2e approach. A draft solution would be to create a separate Node.js server used as a webhook target (performing assertions on received data) with events triggered by simulated frontend user activity automated via Cypress. Such pipeline would allow for quicker delivery of updates for newer Nextcloud versions, as they wouldn't have to be tested manually.