Skip to content

Instantly share code, notes, and snippets.

@Raynos

Raynos/x.js Secret

Created March 29, 2013 21:28
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/bf090650dd7b160272d5 to your computer and use it in GitHub Desktop.
Save Raynos/bf090650dd7b160272d5 to your computer and use it in GitHub Desktop.
var test = require("tape")
var testling = require("testling")
var server
test("setup", function (assert) {
testling.spawn("test/setup.js", function (err, proc) {
assert.ifError(err)
server = proc
assert.end()
})
})
test("real code", ...)
test("teardown", function (assert) {
server.close(function (err) {
assert.ifError(err)
assert.end()
})
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment