     # creating
     new setTimeout ->
       fs.writeFileSync files.app, backup
-    , 3000+    , 3000
+
+  it 'should start app and serve it', (done)->
+    @timeout 4000
+
+    errors = outs = 0
+    checkers = [
+      /✓ public\/app\.js.+/
+      /✓ public\/app\.css.+/
+      /♫  http\:\/\/localhost:8080/
+    ]
+
+    server = null
+
+    options = compile:true, server: 'true', base: base
+    stdio = 
+      out:(msg) ->
+        checkers.shift().test(msg).should.be.true
+        if checkers.length is 0
+          new setTimeout ->
+            exec 'curl -I localhost:8080', (err, stdout, stderr)->
+              /HTTP\/1\.1 200 OK/.test(stdout).should.be.true
+              done()
+              server.close()
+              errors.should.equal 0
+          , 500
+      err:(msg) -> errors++
+      nocolor: true
+
+    fs.writeFileSync files.pack, pack
+    backup = fs.readFileSync files.app
+
+    polvo = require '../../lib/polvo'
+    server = polvo options, stdio
    fs.writeFileSync files.config, config

  afterEach ->
    clear_cache()    

  after ->
    fs.unlinkSync files.config if fs.existsSync files.config

          checker.test(msg).should.be.true
          outs++

    compile = polvo options, stdio
    
    outs.should.equal 1
    errors.should.equal 0


  it 'should compile app without any surprises', ->
