pushbits / server

A simple server for push notifications via Matrix (and a minimalistic alternative to Pushover and Gotify) 🚀📯
https://www.pushbits.io
ISC License
314 stars 18 forks source link

Add tests #12

Closed eikendev closed 3 years ago

eikendev commented 4 years ago

High-quality software needs good testing. If this project should ever be used in production, tests are a must.

CubicrootXYZ commented 3 years ago

Any testing architecture or test frameworks you prefere for that?

eikendev commented 3 years ago

No preference, but honestly not too much experience in Go.

In internal/authentication/credentials/hibp_test.go I tried to go the "standard" way without any frameworks. AFAIK Gotify did it the same way.