Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Common initialization logic for a service integration testing

License

Notifications You must be signed in to change notification settings

BohemiaInteractive/bi-service-test-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • Loads a bi-service based service (from service entry point, usually index.js).
  • Makes sure tests are executed against empty database with restricted db name
  • Runs service db migrations before executing tests
  • Cleans up after itself after tests execution
require('bi-service-test-utils')('<service-entrypoint-file-path>');

Tests

Requires:

  • docker
  • docker-compose@1.18

npm run docker:test

About

Common initialization logic for a service integration testing

Resources

License

Stars

Watchers

Forks

Packages

No packages published