rap2hpoutre / pg-anonymizer

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

Add (kind of) unit tests #15

Closed rap2hpoutre closed 10 months 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 10 months ago

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