0.3.1 • Published 12 years ago

express-test-bot v0.3.1

Weekly downloads
2
License
-
Repository
github
Last release
12 years ago

#node-express-test-bot

A little helper for test environments, that runs an express server, executes queries against it and kills the server afters.

Installation

npm install express-test-bot

API

Load the library:

var ExpressTestBot = require('express-test-bot')

Default usage:

new ExpressTestBot().get('/', function(err, stdout, stderr) { })

With options:

new ExpressTestBot({
  // app: path to the file which starts the express server
  // default value: process.cwd() + '/app.js'
  app: 'server.js'
}).get('/', {
  // toFile: writes the stdout output into a file. useful for images/binary files
  // default value: null
  toFile: 'image.jpg'
}, function(err, stdout, stderr) {

})

License

Hereby placed under MIT license.

0.3.1

12 years ago

0.3.0

12 years ago

0.2.0

12 years ago

0.1.2

12 years ago

0.1.1

12 years ago

0.1.0

12 years ago