GjjvdBurg / signal2html

Export a Signal backup to pretty HTML
MIT License
111 stars 15 forks source link

Add preliminary infrastructure for unit tests #42

Closed GjjvdBurg closed 3 years ago

GjjvdBurg commented 3 years ago

As the package starts to grow and people are interested in this more and more, it is probably time to start adding some unit tests. While we are unlikely to be able to add tests using an actual Signal database, we can at least test internal functionality (and potentially mock the database connection at some point).

We can merge this with minimal tests (as it is now) or when we have some more tests implemented.

Update: on second thought, it might be useful to merge even if we don't have many tests yet, as that will allow us to start adding tests for new features.