rap2hpoutre / pg-anonymizer

Dump anonymized PostgreSQL database with a NodeJS CLI
https://raph.site
MIT License
228 stars 32 forks source link

Add (kind of) unit tests #15

Closed rap2hpoutre closed 1 year ago

rap2hpoutre commented 2 years ago

It's easy to run automated tests thanks to Github actions. Using Postgres as a service in test workflow is easy too (I used it recently here: https://github.com/SocialGouv/mano/blob/main/.github/workflows/end-to-end-tests.yaml#L14-L23).

Since this lib is used by various projects, we should add some tests in order to not break things when we release new features.

rap2hpoutre commented 1 year ago

Fixed via https://github.com/rap2hpoutre/pg-anonymizer/pull/42 thanks to @jackall3n <3