mongonose

Software Screenshot:
mongonose
Software Details:
Version: 0.5.2
Upload Date: 11 May 15
Developer: Kapil Thangavelu
Distribution Type: Freeware
Downloads: 5

Rating: nan/5 (Total Votes: 0)

mongonose is a nose plugin that automates the creation and teardown of a mongodb instance as part of test runs.

Installation

Grab the package off pypi:

easy_install mongonose

Its automatically picked up via entry points as a nose plugin.

Usage

The plugin extends the nose options with a few options. The only required options are either --mongodb or --mongodb-bin to enable the plugin.

 --mongodb is required to enable the mongodb plugin.
 --mongodb-bin Allows specifying the path to the mongod binary. If not specified the plugin will search the path for a mongodb binary. If one is not found, an error will be raised.
 --mongodb-port can be optionally set, by default the plugin will utilize a a random open port on the machine.
 --mongodb-scripting Enables the javascript scripting engine, off by default.
 --mongodb-logpath Stores the server log at the given path, by default sent to /dev/null
 --mongodb-prealloc Enables pre-allocation of databases, default is off. Modern filesystems will sparsely allocate, which can speed up test execution.

The plugin will populate the environment variable "TEST_MONGODB" which contains the location to the mongodb server in host:port format.

Tests should use this environment variable value when connecting to mongodb.

Requirements:

  • Python
  • nose

Similar Software

DREAM Tool
DREAM Tool

3 Jun 15

nose-kleenex
nose-kleenex

15 Apr 15

qtsourceview
qtsourceview

11 May 15

selenose
selenose

20 Feb 15

Other Software of Developer Kapil Thangavelu

charmrunner
charmrunner

14 Apr 15

Comments to mongonose

Comments not found
Add Comment
Turn on images!