Miss any of our Open RFC calls?Watch the recordings here! »

seneca-db-test-harness

0.4.1 • Public • Published

TODO

Ubuntu 15.10 Node 0.10.38

SDBTH automates the process of testing seneca-stores against seneca applications. It deploys db and app in docker containers. Then it runs tests. Meanwhile it monitors for errors. Many tests can be scheduled at once.

https://www.youtube.com/watch?v=VYFfys8LwSk

quick setup

  • pull this well app fork
  • inside it npm install
  • inside it mv options.example.js options.well.js
  • pull this repo, so that both folders are side by side
  • inside this npm install
  • beside both folders, create sdbth.conf file and add configuration(see below)
  • example use: node sdbth.js well -fb -dbs mem-5 mysql postgresql level jsonfile mongo redis

sdbth.conf

'use strict'

module.exports = {
  well: {
    optionsfile: __dirname + '/well/options.example.js',
    // docker images to run.
    // --link and -e db= will be added automatically.
    // if it exposes a port in dockerfile, tester will automatically
    // wait for it to start listening before booting next.
    dockimages: [
      { name: 'well-app', path: __dirname + '/well/.', testTarget: true }
    ],
    deploymode: 'series', // 'series' or 'parallel'
    testpath: __dirname + '/well/' // it will npm test in this location
  }
}

Keywords

none

Install

npm i seneca-db-test-harness

DownloadsWeekly Downloads

0

Version

0.4.1

License

MIT

Last publish

Collaborators

  • avatar