Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including seneca-db-test-harness with all npm packages installed. Try it out:

var senecaDbTestHarness = require("seneca-db-test-harness")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

seneca-db-test-harness v0.4.1

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.

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
  }
}

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free