Skip to content

Example code for the Automating data migration testing blog post

License

Notifications You must be signed in to change notification settings

Pragmatists/data-migration-testing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automating data migration testing

This code accompanies the Automating data migration testing blog post on https://blog.pragmatists.com.

It provides a simple framework for testing data migrations, with both the source and target databases running. Here, we're using PostgreSQL as source, running in Docker, and MongoDB as target, running in memory. The code is written in JavaScript, and Jest is used to run tests.

Running

  1. Make sure you have Docker Engine, Docker Compose, and Node.js.
  2. After pulling the code, run npm install to install dependencies.
  3. Run npm test to launch the test suite.
  4. Run npm start to launch the actual migration.

Content

Assuming you're familiar with JavaScript projects in general, the important bits here are:

About

Example code for the Automating data migration testing blog post

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published