var example = require("washington")
var assert  = require("assert")
var color   = require("cli-color")

example.use({
  success: function (success, report) {
    process.stdout.write(color.green("."))
  },

  pending: function (pending, report) {
    process.stdout.write(color.yellow("-"))
  },

  failure: function (failure, report) {
    process.stdout.write(color.red("X"))
  },

  complete: function (report, code) {
    process.exit(code)
  }
})

example("Good", function () {
  assert.equal(1, 1)
})

example("Pending")

example("Bad", function () {
  assert.equal(1, 2)
})

example.go()

var example = require("washington")
var assert  = require("assert")

var RED        = "\u001b[31m"
var GREEN      = "\u001b[32m"
var YELLOW     = "\u001b[33m"
var CLEAR      = "\u001b[0m"

example.use({
  success: function (success, report) {
    process.stdout.write(GREEN + "." + CLEAR)
  },

  pending: function (pending, report) {
    process.stdout.write(YELLOW + "-" + CLEAR)
  },

  failure: function (failure, report) {
    process.stdout.write(RED + "X" + CLEAR)
  },

  complete: function (report, code) {
    process.exit(code)
  }
})

example("Good", function () {
  assert.equal(1, 1)
})

example("Pending")

example("Bad", function () {
  assert.equal(1, 2)
})

example.go()

Drop dependency on cli-color in example