I am currently running my test suite on AngularJS using Grunt , Karma , Jasmine and Protractor . I am using the hood.ie database library , which is a library on top of CouchDB . I am running hood.ie using the following code in my grunt file:
hoodie: { start: { options: { callback: function(config) { grunt.config.set('connect.proxies.0.port', config.stack.couch.port); } } } },
However, I would like to have a separate database for running tests, which is automatically reset subsequently. Thus, production data will not conflict with tests.
How do I approach this? I would suggest that there is some standard way to do this, as I can imagine that other people are facing the same problem, but I cannot find anything on the Internet.
javascript couchdb gruntjs jasmine hoodie
Jeroen
source share