 path = require "path"
+os = require "os"
 _ = require "lodash"
 yml = require "js-yaml"
 fs = require "fs"

          done()
        return

    describe "spawning a file that logs to stderr", ->
      beforeEach -> process.chdir SPAWN_STDERR_DIR

      it "logs the output to stderr and finishes gracefully", (done) ->
        cli.exec_err "p -n -d", (stdout, stderr, code) ->
          expect(code).to.eql 0
          expect(stderr).to.match new RegExp("OH NO!")
          expect(stdout).to.match new RegExp("test-spawn-stderr-plugin:start")
          expect(stdout).to.match new RegExp("test-spawn-stderr-plugin:finish")
          done()
        , [ process.stdin, "pipe", null ]
        return

    describe "when a plugin throws a synchronous error", ->

issues_combined = require "./../fixtures/issues-combined"
issues_not_combined = require "./../fixtures/issues-not-combined"
expect = chai.expect
on_win = !!os.platform().match(/win/i)
nix_only_describe = if on_win then xit else it

CWD = process.cwd()
SYSTEM_TESTS = path.join(
